2010-09-07 19:26:01 -04:00
|
|
|
module Fog
|
|
|
|
module Bluebox
|
2010-09-08 15:07:45 -04:00
|
|
|
class Compute
|
2010-09-07 19:26:01 -04:00
|
|
|
class Real
|
|
|
|
|
|
|
|
# Get details of a block.
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * block_id<~Integer> - Id of block to lookup
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Hash>:
|
|
|
|
# TODO
|
|
|
|
def get_block(block_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:path => "api/blocks/#{block_id}.json"
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
2010-09-09 20:50:38 -04:00
|
|
|
def get_block(block_id)
|
2010-09-07 19:26:01 -04:00
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|