aboutsummaryrefslogtreecommitdiffstats
path: root/install.rb
blob: 933e5ee9a2098b6ac635ad2081e12a7193889040 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
version = ARGV.pop

if version.nil?
  puts "Usage: ruby install.rb version"
  exit(64)
end

%w( activesupport activemodel activerecord actionpack actionview actionmailer railties activejob ).each do |framework|
  puts "Installing #{framework}..."
  `cd #{framework} && gem build #{framework}.gemspec && gem install #{framework}-#{version}.gem --no-document && rm #{framework}-#{version}.gem`
end

puts "Installing rails..."
`gem build rails.gemspec`
`gem install rails-#{version}.gem --no-document `
`rm rails-#{version}.gem`