class FWToolkit::Executable::CliRunner

Public Instance Methods

report_error(command, command_output) click to toggle source
# File lib/fwtoolkit/executable/executable.rb, line 22
def report_error(command, command_output)
  command_output.gsub!(/e\[\d+m/, '')
  puts "An error has occured while running: \"#{command}\"", :red
  puts 'Command output:'
  raise "\n***\n#{command_output}***"
end
run(command, config={}) click to toggle source
# File lib/fwtoolkit/executable/executable.rb, line 18
def run(command, config={})
  `#{command}`
end