Class: Inspec::Resources::Ksh
Instance Attribute Summary
Attributes inherited from Cmd
Instance Method Summary collapse
-
#initialize(command, options = {}) ⇒ Ksh
constructor
A new instance of Ksh.
- #resource_id ⇒ Object
- #to_s ⇒ Object
Methods inherited from Cmd
#exist?, #exit_status, #result, #stderr, #stdout
Constructor Details
#initialize(command, options = {}) ⇒ Ksh
Returns a new instance of Ksh.
23 24 25 26 27 |
# File 'lib/inspec/resources/ksh.rb', line 23 def initialize(command, = {}) @raw_command = command [:shell] = "ksh" if .is_a?(Hash) super(CommandWrapper.wrap(command, )) end |
Instance Method Details
#resource_id ⇒ Object
29 30 31 |
# File 'lib/inspec/resources/ksh.rb', line 29 def resource_id @raw_command || "Kornshell command" end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/inspec/resources/ksh.rb', line 33 def to_s "KornShell command #{@raw_command}" end |