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
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 |