Sha256: 5627c393627acebe43f010aaac13d166f8ba41b7181d0b7bf7b88aa6eec59f3f
Contents?: true
Size: 611 Bytes
Versions: 7
Compression:
Stored size: 611 Bytes
Contents
module Fog module Compute class XenServer class Real def reboot_server(ref, stype = "clean") @connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "VM.#{stype}_reboot"}, ref) end alias_method :reboot_vm, :reboot_server def hard_reboot_server(ref) reboot_server(ref, "hard") end alias_method :hard_reboot_vm, :hard_reboot_server def clean_reboot_server(ref) reboot_server(ref, "clean") end alias_method :clean_reboot_vm, :clean_reboot_server end end end end
Version data entries
7 entries across 5 versions & 2 rubygems