1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/ecloud/requests/compute/get_compute_pool.rb

23 lines
485 B
Ruby
Raw Normal View History

2012-04-11 19:50:01 -04:00
module Fog
module Compute
class Ecloud
class Real
basic_request :get_compute_pool
end
2012-11-27 19:57:16 -05:00
class Mock
def get_compute_pool(uri)
compute_pool_id = id_from_uri(uri)
compute_pool = self.data[:compute_pools][compute_pool_id]
if compute_pool
response(:body => Fog::Ecloud.slice(compute_pool, :id, :environment))
else response(:status => 404) # ?
end
end
end
2012-04-11 19:50:01 -04:00
end
end
end