Method: Inspec::Resources::PowershellScript#initialize

Defined in:
lib/resources/powershell.rb

#initialize(script) ⇒ PowershellScript

Returns a new instance of PowershellScript.



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

def initialize(script)
  unless inspec.os.windows?
    return skip_resource 'The `script` resource is not supported on your OS yet.'
  end
  # since WinRM 2.0 and the default use of powershell for local execution in
  # train, we do not need to wrap the script here anymore
  super(script)
end