lib/fog/compute/xen_server/requests/reboot_server.rb in fog-xenserver-0.0.1.beta1 vs lib/fog/compute/xen_server/requests/reboot_server.rb in fog-xenserver-0.0.1.beta2
- old
+ new
@@ -1,17 +1,25 @@
module Fog
module Compute
class XenServer
class Real
- def reboot_server( ref, stype = 'clean' )
+ def reboot_server(ref, stype = 'clean')
@connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "VM.#{stype}_reboot"}, ref)
end
- end
- class Mock
- def reboot_server( ref, stype )
- Fog::Mock.not_implemented
+ 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
\ No newline at end of file