Class: Specinfra::HostInventory::Uname

Inherits:
Base
  • Object
show all
Defined in:
lib/pullmatic/resource/os.rb

Instance Method Summary collapse

Instance Method Details

#getObject



76
77
78
79
80
81
82
83
84
# 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