Method: CommandBuilder#command
- Defined in:
- lib/clarity/commands/command_builder.rb
#command ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/clarity/commands/command_builder.rb', line 23 def command results = [] exec_functions.each_with_index do |cmd, index| results << cmd.gsub('filename', filename.to_s).gsub('options', .to_s).gsub('term', terms[index].to_s) end %[sh -c '#{results.join(" | ")}'] end |