Sha256: f58fc428738f8c517ffbffd61753d71cd407957d119336b019cdcb8708fae9b1
Contents?: true
Size: 613 Bytes
Versions: 28
Compression:
Stored size: 613 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Stops a virtual machine. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/stopVirtualMachine.html] def stop_virtual_machine(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'stopVirtualMachine') else options.merge!('command' => 'stopVirtualMachine', 'id' => args[0]) end request(options) end end end end end
Version data entries
28 entries across 26 versions & 4 rubygems