Class: Inspec::Resources::LegacyPowershell

Inherits:
Powershell show all
Defined in:
lib/inspec/resources/powershell.rb

Overview

this is deprecated syntax and will be removed in future versions

Instance Attribute Summary

Attributes inherited from Cmd

#command

Instance Method Summary collapse

Methods inherited from Powershell

#exist?, #strip, #to_s

Methods inherited from Cmd

#exist?, #exit_status, #result, #stderr, #stdout, #to_s

Constructor Details

#initialize(script) ⇒ LegacyPowershell

Returns a new instance of LegacyPowershell.



60
61
62
63
# File 'lib/inspec/resources/powershell.rb', line 60

def initialize(script)
  Inspec.deprecate(:resource_script, "The `script` resource is deprecated. Please use `powershell` instead.")
  super(script)
end