Method: WindowsFeature#initialize
- Defined in:
- lib/resources/windows_feature.rb
#initialize(feature) ⇒ WindowsFeature
39 40 41 42 43 44 45 |
# File 'lib/resources/windows_feature.rb', line 39 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[:family] != 'windows' end |