Sha256: 80f577c1d53ac41f36ff2d23c82d042e6201116de52bf317e51450a821754ad6

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 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, fail_on_error=true)
      
      # run development version in verbose mode
      cmd = cmd.gsub(/^revenc/, "#{APP_BIN_PATH} --verbose")

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

Version data entries

1 entries across 1 versions & 1 rubygems

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