Class: Fog::Vsphere::Compute::Host

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

Instance Method Summary collapse

Instance Method Details

#finish_maintenanceObject



49
50
51
# File 'lib/fog/vsphere/models/compute/host.rb', line 49

def finish_maintenance
  service.host_finish_maintenance(name, cluster, datacenter)
end

#memory_mbObject



37
38
39
# File 'lib/fog/vsphere/models/compute/host.rb', line 37

def memory_mb
  memory / 1024 / 1024
end

#shutdownObject



41
42
43
# File 'lib/fog/vsphere/models/compute/host.rb', line 41

def shutdown
  service.host_shutdown(name, cluster, datacenter)
end

#start_maintenanceObject



45
46
47
# File 'lib/fog/vsphere/models/compute/host.rb', line 45

def start_maintenance
  service.host_start_maintenance(name, cluster, datacenter)
end

#to_sObject

End Lazy Loaded Attributes



33
34
35
# File 'lib/fog/vsphere/models/compute/host.rb', line 33

def to_s
  name
end