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?, #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