Skip to content

Commit

Permalink
[joyent|compute] Added #list_datacenters
Browse files Browse the repository at this point in the history
  • Loading branch information
thekvn committed Apr 10, 2012
1 parent 23f3f81 commit baf0f44
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/joyent/compute.rb
Expand Up @@ -16,7 +16,7 @@ class Joyent < Fog::Service
model_path 'fog/joyent/models/compute'
request_path 'fog/joyent/requests/compute'

# request :list_datacenters
request :list_datacenters
# request :get_datacenter

# Keys
Expand Down
17 changes: 17 additions & 0 deletions lib/fog/joyent/requests/compute/list_datacenters.rb
@@ -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

0 comments on commit baf0f44

Please sign in to comment.