Class: Inspec::Resources::OSResource

Inherits:
PlatformResource show all
Defined in:
lib/resources/os.rb

Instance Method Summary collapse

Methods inherited from PlatformResource

#[], #families, #in_family?, #initialize, #name, #platform?, #supported?

Constructor Details

This class inherits a constructor from Inspec::Resources::PlatformResource

Instance Method Details

#paramsObject

helper to collect a hash object easily



33
34
35
36
37
38
39
40
# File 'lib/resources/os.rb', line 33

def params
  {
    name: name,
    family: @platform[:family],
    release: @platform[:release],
    arch: @platform[:arch],
  }
end

#to_sObject



42
43
44
# File 'lib/resources/os.rb', line 42

def to_s
  'Operating System Detection'
end