lib/bolt/shell/bash.rb
# Returns string with the interpreter conditionally prepended
Returns string with the interpreter conditionally prepended
Returns string with the interpreter conditionally prepended
def inject_interpreter(interpreter, command)
        if interpreter
          command = Array(command).unshift(interpreter).flatten
        end
        command.is_a?(String) ? command : Shellwords.shelljoin(command)
      end
def inject_interpreter ( interpreter , command ) if interpreter command = Array ( command ) . unshift ( interpreter ) . flatten end command . is_a? ( String ) ? command : Shellwords . shelljoin ( command ) end
Returns string with the interpreter conditionally prepended
Returns string with the interpreter conditionally prepended
interpreter
<not_specific>
command
<not_specific>