1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[cloudsigma] Add CloudSigma compute provider

This commit is contained in:
Kaloyan Kanev 2013-01-18 17:34:08 +02:00
parent 22a3cc36ab
commit e61b81bf49
73 changed files with 2501 additions and 1 deletions

View file

@ -0,0 +1,28 @@
module Fog
module Compute
class CloudSigma
class Real
def get_pricing(currency=nil, subscription=false)
query = {:limit => 0}
if currency
query[:currency] = currency
end
if subscription
query[:level] = 0
end
request(:path => "pricing/",
:method => 'GET',
:expects => 200,
:query => query)
end
end
class Mock
def get_pricing(currency=nil, subscription=false)
mock_get(:pricing, 200)
end
end
end
end
end