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:
parent
23f3f811c2
commit
baf0f445e9
2 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
17
lib/fog/joyent/requests/compute/list_datacenters.rb
Normal file
17
lib/fog/joyent/requests/compute/list_datacenters.rb
Normal 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
|
Loading…
Reference in a new issue