class Pullmatic::Resource::Os

Public Class Methods

execute() click to toggle source
# File lib/pullmatic/resource/os.rb, line 5
def self.execute
  self.new.execute
end

Public Instance Methods

execute() click to toggle source
# File lib/pullmatic/resource/os.rb, line 9
def execute
  os_info = Specinfra.backend.os_info
  hostname = host_inventory['hostname']
  selinux = host_inventory['selinux']
  timezone = host_inventory['timezone']
  uname = host_inventory['uname']
  {:os_info => os_info, :hostname => hostname, :selinux => selinux, :timezone => timezone, :uname => uname}
end