Class: Specinfra::HostInventory::Selinux

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

Instance Method Summary collapse

Instance Method Details

#getObject



48
49
50
51
52
53
54
55
56
# File 'lib/pullmatic/resource/os.rb', line 48

def get
  cmd = backend.command.get(:get_inventory_selinux)
  ret = backend.run_command(cmd)
  if ret.exit_status == 0
    "enabled"
  else
    "disabled"
  end
end