public
Description: Test against many versions of Rails with a single command.
Homepage: http://multi-rails.rubyforge.org/
Clone URL: git://github.com/relevance/multi_rails.git
multi_rails / install.rb
100644 15 lines (12 sloc) 0.68 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'fileutils'
 
BAR = "=" * 80
RUNNER_PATH = "script/multi_rails_runner"
ACTUAL_PATH = File.expand_path(File.join(RAILS_ROOT, "/vendor/plugins/multi_rails/bin/multi_rails_runner.rb"))
 
puts BAR
puts "Installing multi_rails, and settig up /script/multi_rails_runner."
 
FileUtils.symlink(ACTUAL_PATH, RUNNER_PATH, :force => true)
`chmod +x #{RAILS_ROOT}/script/multi_rails_runner`
puts "Run '#{RUNNER_PATH} bootstrap' to add the necessary multi_rails require line to the top of your environment.rb file."
puts "Once that has been done, run '#{RUNNER_PATH}' from the root of our project to test your Rails app against all your versions of Rails."
puts "Happy Testing !"
puts BAR