Method: Inspec::Resources::WindowsFeature#initialize

Defined in:
lib/resources/windows_feature.rb

#initialize(feature) ⇒ WindowsFeature

Returns a new instance of WindowsFeature.



40
41
42
43
44
45
46
# File 'lib/resources/windows_feature.rb', line 40

def initialize(feature)
  @feature = feature
  @cache = nil

  # verify that this resource is only supported on Windows
  return skip_resource 'The `windows_feature` resource is not supported on your OS.' if !inspec.os.windows?
end