Class: OS

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

Overview

author: Dominik Richter author: Christoph Hartmann

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object



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

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

#to_sObject



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

def to_s
  'Operating System Detection'
end