Skip to content
This repository
Newer
Older
100644 17 lines (15 sloc) 0.36 kb
5687b8da »
2011-11-20 dev: much simpler management of multiple gemfiles
1 class Version < Thor
2 desc "use VERSION", "installs the bundle the rails-VERSION"
aa1a079f »
2011-04-16 Add thor task for installing bundle with rails-version-specific-gemfile
3 def use(version)
5687b8da »
2011-11-20 dev: much simpler management of multiple gemfiles
4 `rm Gemfile.lock`
5 `echo #{version} > ./.rails-version`
6 "bundle install --binstubs".tap do |m|
9a92b752 »
2011-09-06 dev: no need to update what we just loaded
7 say m
8 system m
a6cd192c »
2011-05-11 Dev: improved thor task
9 end
aa1a079f »
2011-04-16 Add thor task for installing bundle with rails-version-specific-gemfile
10 end
d756e02b »
2011-05-07 Dev: enhance thor tasks
11
5687b8da »
2011-11-20 dev: much simpler management of multiple gemfiles
12 desc "which", "print out the configured rails version"
d756e02b »
2011-05-07 Dev: enhance thor tasks
13 def which
5687b8da »
2011-11-20 dev: much simpler management of multiple gemfiles
14 say `cat ./.rails-version`
9a92b752 »
2011-09-06 dev: no need to update what we just loaded
15 end
aa1a079f »
2011-04-16 Add thor task for installing bundle with rails-version-specific-gemfile
16 end
Something went wrong with that request. Please try again.