Class: Inspec::Resources::OSResource

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

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object



22
23
24
25
26
# File 'lib/resources/os.rb', line 22

def [](name)
  # convert string to symbol
  name = name.to_sym if name.is_a? String
  inspec.backend.os[name]
end

#to_sObject



28
29
30
# File 'lib/resources/os.rb', line 28

def to_s
  'Operating System Detection'
end