mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
27 lines
622 B
Ruby
27 lines
622 B
Ruby
module Fog
|
|
module Compute
|
|
class Bluebox
|
|
class Real
|
|
|
|
# Create a template from block
|
|
#
|
|
# ==== Parameters
|
|
# * block_id<~Integer> - Id of block to create template from
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~Array>:
|
|
# TODO
|
|
def create_template(block_id, options={})
|
|
request(
|
|
:expects => 202,
|
|
:method => 'POST',
|
|
:path => "api/block_templates.json",
|
|
:query => {'id' => block_id}.merge!(options)
|
|
)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|