class Specinfra::HostInventory::Uname

Public Instance Methods

get() click to toggle source
# File lib/pullmatic/resource/os.rb, line 76
def get
  cmd = backend.command.get(:get_inventory_uname)
  ret = backend.run_command(cmd)
  if ret.exit_status == 0
    ret.stdout.chomp
  else
    nil
  end
end