mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
29 lines
649 B
Ruby
29 lines
649 B
Ruby
module Fog
|
|
module Compute
|
|
class XenServer
|
|
|
|
class Real
|
|
|
|
#
|
|
# Puts the host into a state in which no new VMs can be started.
|
|
# Currently active VMs on the host continue to execute.
|
|
#
|
|
# @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=host
|
|
#
|
|
def disable_host( ref )
|
|
@connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "host.disable"}, ref)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def disable_host( ref )
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|