Class: Fog::XenServer::Compute::Models::Host

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/xenserver/compute/models/host.rb

Instance Method Summary collapse

Methods included from ClassMethods

#collection_name, #provider_class, #require_before_save

Methods included from InstanceMethods

#collection, #destroy, #method_missing, #provider_class, #require_creation_attributes, #respond_to?, #save, #set_attribute

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fog::XenServer::Compute::Models::InstanceMethods

Instance Method Details

#reboot(auto_disable = true) ⇒ Object



84
85
86
87
# File 'lib/fog/xenserver/compute/models/host.rb', line 84

def reboot(auto_disable = true)
  service.disable_host(reference) if auto_disable
  service.reboot_host(reference)
end

#shutdown(auto_disable = true) ⇒ Object



79
80
81
82
# File 'lib/fog/xenserver/compute/models/host.rb', line 79

def shutdown(auto_disable = true)
  service.disable_host(reference) if auto_disable
  service.shutdown_host(reference)
end