Class: Inspec::Resources::LegacyPowershell
- Inherits:
-
Powershell
- Object
- Cmd
- Powershell
- Inspec::Resources::LegacyPowershell
- 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
Instance Method Summary collapse
-
#initialize(script) ⇒ LegacyPowershell
constructor
A new instance of LegacyPowershell.
Methods inherited from Powershell
#exist?, #resource_id, #strip, #to_s
Methods inherited from Cmd
#exist?, #exit_status, #resource_id, #result, #stderr, #stdout, #to_s
Constructor Details
#initialize(script) ⇒ LegacyPowershell
Returns a new instance of LegacyPowershell.
64 65 66 67 |
# File 'lib/inspec/resources/powershell.rb', line 64 def initialize(script) Inspec.deprecate(:resource_script, "The `script` resource is deprecated. Please use `powershell` instead.") super(script) end |