class FWToolkit::Executable::ThorRunner
Public Instance Methods
report_error(command, command_output)
click to toggle source
# File lib/fwtoolkit/executable/executable.rb, line 9 def report_error(command, command_output) command_output.gsub!(/e\[\d+m/, '') #Stripping colors say "An error has occured while running: \"#{command}\"", :red say 'Command output:' raise Thor::Error, "\n***\n#{command_output}***" end
run(command, config={})
click to toggle source
# File lib/fwtoolkit/executable/executable.rb, line 5 def run(command, config={}) Thor::Actions::run(command, config) end