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.



519
520
521
# File 'lib/esx.rb', line 519

def _wrapped_object
  @_wrapped_object
end

Class Method Details

.wrap(obj) ⇒ Object



521
522
523
524
525
# File 'lib/esx.rb', line 521

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

Instance Method Details

#ip_addressObject



527
528
529
# File 'lib/esx.rb', line 527

def ip_address
  _wrapped_object.ipAddress
end

#nicsObject



531
532
533
534
535
536
537
# File 'lib/esx.rb', line 531

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

#tools_running_statusObject



539
540
541
# File 'lib/esx.rb', line 539

def tools_running_status
  _wrapped_object.toolsRunningStatus
end

#vmware_tools_installed?Boolean

Returns:

  • (Boolean)


543
544
545
# File 'lib/esx.rb', line 543

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