Sha256: 714d1eeb304ff2f529344d9f8fe23b4574effbbe1d4e74f8ac3c1ce4d9fb1060

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oct-0.2.0 features/support/aruba.rb
oct-0.1.0 features/support/aruba.rb