Sha256: 9dd04fb340b5dc03c924e008fe53e328865faee4221929cca1fb65d9b3ffa5ea
Contents?: true
Size: 718 Bytes
Versions: 3
Compression:
Stored size: 718 Bytes
Contents
module Smartdc::Api module Machines def machines(params={}) get 'my/machines', params end def create_machine(body={}) post 'my/machines', body end def machine(id) get 'my/machines/' + id.to_s end def destroy_machine(id) delete 'my/machines/' + id.to_s end def stop_machine(id) post 'my/machines/' + id.to_s, {action: :stop} end def start_machine(id) post 'my/machines/' + id.to_s, {action: :start} end def reboot_machine(id) post 'my/machines/' + id.to_s, {action: :reboot} end def resize_machine(id, params={}) params[:action] = 'resize' post 'my/machines/' + id.to_s, params end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smartdc-2.0.2 | lib/smartdc/api/machines.rb |
smartdc-2.0.1 | lib/smartdc/api/machines.rb |
smartdc-2.0.0 | lib/smartdc/api/machines.rb |