mirror of
https://github.com/pry/pry-rails.git
synced 2022-11-09 12:36:03 -05:00
20 lines
442 B
Ruby
20 lines
442 B
Ruby
require "rubygems"
|
|
require "bundler/setup"
|
|
require "bundler/gem_tasks"
|
|
require "appraisal"
|
|
|
|
desc 'Create test Rails app'
|
|
task :init_test_app do
|
|
`rm -rf test/app >/dev/null 2>&1`
|
|
`env BUNDLE_GEMFILE=gemfiles/rails30.gemfile bundle exec rails new test/app`
|
|
end
|
|
|
|
desc 'Start the Rails server'
|
|
task :server do
|
|
exec 'cd test/app && rails server'
|
|
end
|
|
|
|
desc 'Start the Rails console'
|
|
task :console do
|
|
exec 'cd test/app && rails console'
|
|
end
|