Class: Fog::Vsphere::Compute::Host
- Inherits:
-
Model
- Object
- Model
- Fog::Vsphere::Compute::Host
- Defined in:
- lib/fog/vsphere/models/compute/host.rb
Instance Method Summary collapse
- #finish_maintenance ⇒ Object
- #memory_mb ⇒ Object
- #shutdown ⇒ Object
- #start_maintenance ⇒ Object
-
#to_s ⇒ Object
End Lazy Loaded Attributes.
Instance Method Details
#finish_maintenance ⇒ Object
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_mb ⇒ Object
37 38 39 |
# File 'lib/fog/vsphere/models/compute/host.rb', line 37 def memory_mb memory / 1024 / 1024 end |
#shutdown ⇒ Object
41 42 43 |
# File 'lib/fog/vsphere/models/compute/host.rb', line 41 def shutdown service.host_shutdown(name, cluster, datacenter) end |
#start_maintenance ⇒ Object
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_s ⇒ Object
End Lazy Loaded Attributes
33 34 35 |
# File 'lib/fog/vsphere/models/compute/host.rb', line 33 def to_s name end |