Sha256: 1ccfbe8b0a8aefbb03ebe03103d1e9b25faa821461c9dd02c039fad5d40d76e9

Contents?: true

Size: 506 Bytes

Versions: 16

Compression:

Stored size: 506 Bytes

Contents

require 'active_support/all'

[:rails, :rake].each do |command|
  define_method command do |task|
    Dir.chdir test_app_path do
      # this is commented bc the output is annoying and not useful imho
      # if you cant provide a reason to keep this i'll delete
      # dbg_comment "cd #{test_app_path}"
      reload_application_gemfile
      `bundle exec "#{command} #{task}"`
    end
  end
end

# def dbg_comment(msg)
#   puts " # #{ts} - #{msg}"
# end

# def ts
#   Time.now.strftime('%H:%M:%S')
# end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 spec/command_wrapper_helper.rb
qbrick-2.7 spec/command_wrapper_helper.rb
qbrick-2.6.10 spec/command_wrapper_helper.rb
qbrick-2.6.9 spec/command_wrapper_helper.rb
qbrick-2.6.8 spec/command_wrapper_helper.rb
qbrick-2.6.7 spec/command_wrapper_helper.rb
qbrick-2.6.6 spec/command_wrapper_helper.rb
qbrick-2.6.5 spec/command_wrapper_helper.rb
qbrick-2.6.4 spec/command_wrapper_helper.rb
qbrick-2.6.3 spec/command_wrapper_helper.rb
qbrick-2.6.2 spec/command_wrapper_helper.rb
qbrick-2.6.1 spec/command_wrapper_helper.rb
qbrick-2.6.0 spec/command_wrapper_helper.rb
qbrick-2.5.2 spec/command_wrapper_helper.rb
qbrick-2.5.1 spec/command_wrapper_helper.rb
qbrick-2.5.0 spec/command_wrapper_helper.rb