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