class Specinfra::HostInventory::Domain

Public Instance Methods

get() click to toggle source
# 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