Sha256: b9dbdfec7592e3d14427077a8bdb604c3a11058814f72f5dd556c6071a95216f

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

require 'aruba'
require 'fileutils'

APP_BIN_PATH = File.join(ENV['PWD'], 'bin', 'revenc')

module Aruba
  module Api

   alias_method :old_run, :run

    # override aruba 
    def run(cmd)
      
      # run development version in verbose mode
      cmd = cmd.gsub(/^revenc/, "#{APP_BIN_PATH} --verbose")

      # run original aruba 'run' 
      old_run(cmd)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revenc-0.1.2 features/support/aruba.rb