2010-05-24 14:03:52 -04:00
|
|
|
module Fog
|
|
|
|
module Bluebox
|
|
|
|
class Real
|
|
|
|
|
2010-06-02 11:20:38 -04:00
|
|
|
# Get details of a block.
|
2010-05-24 14:03:52 -04:00
|
|
|
#
|
|
|
|
# ==== Parameters
|
2010-06-02 11:20:38 -04:00
|
|
|
# * block_id<~Integer> - Id of block to lookup
|
2010-05-24 14:03:52 -04:00
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Hash>:
|
2010-06-02 11:20:38 -04:00
|
|
|
# TODO
|
2010-05-24 14:03:52 -04:00
|
|
|
def get_block(block_id)
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
2010-06-02 22:38:50 -04:00
|
|
|
:path => "api/blocks/#{block_id}.json"
|
2010-05-24 14:03:52 -04:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
|
|
|
def get_slice(id)
|
2010-06-02 11:09:54 -04:00
|
|
|
Fog::Mock.not_implemented
|
2010-05-24 14:03:52 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|