Class: Inspec::Resources::LegacyPowershellScript
- Inherits:
-
PowershellScript
- Object
- Cmd
- PowershellScript
- Inspec::Resources::LegacyPowershellScript
- Defined in:
- lib/resources/powershell.rb
Overview
this is deprecated syntax and will be removed in future versions
Instance Attribute Summary
Attributes inherited from Cmd
Instance Method Summary collapse
-
#initialize(script) ⇒ LegacyPowershellScript
constructor
A new instance of LegacyPowershellScript.
Methods inherited from PowershellScript
Methods inherited from Cmd
#exist?, #exit_status, #result, #stderr, #stdout, #to_s
Constructor Details
#initialize(script) ⇒ LegacyPowershellScript
Returns a new instance of LegacyPowershellScript.
58 59 60 61 |
# File 'lib/resources/powershell.rb', line 58 def initialize(script) Inspec.deprecate(:resource_script, 'The `script` resource is deprecated. Please use `powershell` instead.') super(script) end |