lib/hub/runner.rb
def commands
      args.commands.map do |cmd|
        if cmd.respond_to?(:join)
          # a simplified `Shellwords.join` but it's OK since this is only used to inspect
          cmd.map { |c| (c.index(' ') || c.empty?) ? "'#{c}'" : c }.join(' ')
        else
          cmd.to_s
        end
      end
    end
# An array of all commands as strings.
An array of all commands as strings.
An array of all commands as strings .
def commands
      args.commands.map do |cmd|
        if cmd.respond_to?(:join)
          cmd.map { |c| (c.index(' ') || c.empty?) ? "'#{c}'" : c }.join(' ')
        else
          cmd.to_s
        end
      end
    end
def commands args . commands . map do | cmd | if cmd . respond_to? ( :join ) cmd . map { | c | ( c . index ( ' ' ) || c . empty? ) ? "'#{c}'" : c } . join ( ' ' ) else cmd . to_s end end end
An array of all commands as strings.
An array of all commands as strings .
# a simplified `Shellwords.join` but it's OK since this is only used to inspect