Class: Specinfra::HostInventory::Domain

Inherits:
Base
  • Object
show all
Defined in:
lib/specinfra/host_inventory/domain.rb

Instance Method Summary collapse

Methods inherited from Base

#backend, #initialize

Constructor Details

This class inherits a constructor from Specinfra::HostInventory::Base

Instance Method Details

#getObject


4
5
6
7
8
9
10
11
12
13
# File 'lib/specinfra/host_inventory/domain.rb', line 4

def get
  cmd = backend.command.get(:get_inventory_domain)
  result = backend.run_command(cmd)

  if result.exit_status == 0
    result.stdout.strip
  else
    nil
  end
end