Class: Inspec::Resources::OSResource
- Inherits:
-
PlatformResource
- Object
- PlatformResource
- Inspec::Resources::OSResource
- Defined in:
- lib/resources/os.rb
Instance Method Summary collapse
-
#params ⇒ Object
helper to collect a hash object easily.
- #to_s ⇒ Object
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
#params ⇒ Object
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_s ⇒ Object
42 43 44 |
# File 'lib/resources/os.rb', line 42 def to_s 'Operating System Detection' end |