Method: CommandExec::Command#to_s
- Defined in:
- lib/command_exec/command.rb
#to_s ⇒ String
Output the textual representation of a command
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 |