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:
parent
22a3cc36ab
commit
e61b81bf49
73 changed files with 2501 additions and 1 deletions
28
lib/fog/cloudsigma/requests/get_pricing.rb
Normal file
28
lib/fog/cloudsigma/requests/get_pricing.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue