Class: Inspec::Resources::OSResource

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

Instance Method Summary collapse

Methods inherited from PlatformResource

#[], #arch, #families, #family, #in_family?, #initialize, #name, #normalize, #params, #platform?, #release, #supported?

Constructor Details

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

Instance Method Details

#resource_idObject



30
31
32
# File 'lib/inspec/resources/os.rb', line 30

def resource_id
  @platform.name || "OS"
end

#to_sObject



34
35
36
# File 'lib/inspec/resources/os.rb', line 34

def to_s
  "Operating System Detection"
end