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
- #deprecated ⇒ Object
-
#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.
53 54 55 56 |
# File 'lib/resources/powershell.rb', line 53 def initialize(script) deprecated super(script) end |
Instance Method Details
#deprecated ⇒ Object
58 59 60 |
# File 'lib/resources/powershell.rb', line 58 def deprecated warn '[DEPRECATION] `script(script)` is deprecated. Please use `powershell(script)` instead.' end |