Class: ESX::GuestInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/esx.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_wrapped_objectObject

Returns the value of attribute _wrapped_object.



590
591
592
# File 'lib/esx.rb', line 590

def _wrapped_object
  @_wrapped_object
end

Class Method Details

.wrap(obj) ⇒ Object



592
593
594
595
596
# File 'lib/esx.rb', line 592

def self.wrap(obj)
  gi = GuestInfo.new
  gi._wrapped_object = obj
  gi
end

Instance Method Details

#ip_addressObject



598
599
600
# File 'lib/esx.rb', line 598

def ip_address
  _wrapped_object.ipAddress
end

#nicsObject



602
603
604
605
606
607
608
# File 'lib/esx.rb', line 602

def nics
  n = []
  _wrapped_object.net.each do |nic|
    n << NetworkInterface.wrap(nic)
  end
  n
end

#tools_running_statusObject



610
611
612
# File 'lib/esx.rb', line 610

def tools_running_status
  _wrapped_object.toolsRunningStatus
end

#vmware_tools_installed?Boolean

Returns:

  • (Boolean)


614
615
616
# File 'lib/esx.rb', line 614

def vmware_tools_installed?
  _wrapped_object.toolsRunningStatus != 'guestToolsNotRunning'
end