Method: Inspec::Resources::OneGetPackage#initialize

Defined in:
lib/resources/oneget.rb

#initialize(package_name) ⇒ OneGetPackage

Returns a new instance of OneGetPackage.



23
24
25
26
27
28
# File 'lib/resources/oneget.rb', line 23

def initialize(package_name)
  @package_name = package_name

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