Method: CommandExec::Command#to_s

Defined in:
lib/command_exec/command.rb

#to_sString

Output the textual representation of a command

Returns:

  • (String)

    command in text form



246
247
248
249
250
251
252
253
254
255
# File 'lib/command_exec/command.rb', line 246

def to_s
  cmd = ''
  cmd += @path
  cmd += @options.blank? ? "" : " #{@options}"
  cmd += @parameter.blank? ? "" : " #{@parameter}"

  @logger.debug cmd

  cmd
end