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

[joyent|compute] Added #list_datacenters

This commit is contained in:
Kevin Chan 2012-04-10 15:43:26 +08:00
parent 23f3f811c2
commit baf0f445e9
2 changed files with 18 additions and 1 deletions

View file

@ -16,7 +16,7 @@ module Fog
model_path 'fog/joyent/models/compute'
request_path 'fog/joyent/requests/compute'
# request :list_datacenters
request :list_datacenters
# request :get_datacenter
# Keys

View file

@ -0,0 +1,17 @@
module Fog
module Compute
class Joyent
class Real
def list_datacenters
request(
:expects => 200,
:method => :'GET',
:path => '/my/datacenters'
)
end
end # Real
end
end
end