Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 11 lines (10 sloc) 0.39 kB
aa1a079 @dchelimsky Add thor task for installing bundle with rails-version-specific-gemfile
dchelimsky authored
1 class Rails < Thor
2 desc "use VERSION", "installs the bundle using gemfiles/rails-VERSION"
3 def use(version)
4 gemfile = "--gemfile gemfiles/rails-#{version}"
5 say `bundle install #{gemfile} --binstubs`
6 say `bundle #{gemfile} update rails` unless version =~ /^\d\.\d\.\d$/
7 say `ln -s gemfiles/bin` unless File.exist?('bin')
08f5d4e @dchelimsky Better handling of gemfile scenarios
dchelimsky authored
8 `echo rails-#{version} > ./.gemfile`
aa1a079 @dchelimsky Add thor task for installing bundle with rails-version-specific-gemfile
dchelimsky authored
9 end
10 end
Something went wrong with that request. Please try again.