require 'aruba' require 'fileutils' APP_BIN_PATH = File.join(ENV['PWD'], 'bin', 'oct') module Aruba module Api alias_method :old_run, :run # override aruba def run(cmd, fail_on_error=true) # run development version in verbose mode cmd = cmd.gsub(/^oct/, "#{APP_BIN_PATH} --verbose") # run original aruba 'run' old_run(cmd, fail_on_error) end end end