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.



364
365
366
# File 'lib/esx.rb', line 364

def _wrapped_object
  @_wrapped_object
end

Class Method Details

.wrap(obj) ⇒ Object



366
367
368
369
370
# File 'lib/esx.rb', line 366

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

Instance Method Details

#ip_addressObject



372
373
374
# File 'lib/esx.rb', line 372

def ip_address
  _wrapped_object.ipAddress
end

#nicsObject



376
377
378
379
380
381
382
# File 'lib/esx.rb', line 376

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

#tools_running_statusObject



384
385
386
# File 'lib/esx.rb', line 384

def tools_running_status
  _wrapped_object.toolsRunningStatus
end

#vmware_tools_installed?Boolean

Returns:

  • (Boolean)


388
389
390
# File 'lib/esx.rb', line 388

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