Method: LTools::Tool#command

Defined in:
lib/core/tool.rb

#commandObject



74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/core/tool.rb', line 74

def command
  @cmd.map{|str|
    if str.include?(' ')
      if str.include? '"'
        "'#{str}'"
      else
        "\"#{str}\""
      end
    else
      str
    end
  }.join ' '
end