Method: Inspec::Resources::Bash#initialize

Defined in:
lib/resources/bash.rb

#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, options = {})
  @raw_command = command
  options[:shell] = 'bash' if options.is_a?(Hash)
  super(CommandWrapper.wrap(command, options))
end