Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 17 lines (15 sloc) 0.36 kB
5687b8d @dchelimsky dev: much simpler management of multiple gemfiles
dchelimsky authored
1 class Version < Thor
2 desc "use VERSION", "installs the bundle the rails-VERSION"
aa1a079 @dchelimsky Add thor task for installing bundle with rails-version-specific-gemfile
dchelimsky authored
3 def use(version)
5687b8d @dchelimsky dev: much simpler management of multiple gemfiles
dchelimsky authored
4 `rm Gemfile.lock`
5 `echo #{version} > ./.rails-version`
6 "bundle install --binstubs".tap do |m|
9a92b75 @dchelimsky dev: no need to update what we just loaded
dchelimsky authored
7 say m
8 system m
a6cd192 @dchelimsky Dev: improved thor task
dchelimsky authored
9 end
aa1a079 @dchelimsky Add thor task for installing bundle with rails-version-specific-gemfile
dchelimsky authored
10 end
d756e02 @dchelimsky Dev: enhance thor tasks
dchelimsky authored
11
5687b8d @dchelimsky dev: much simpler management of multiple gemfiles
dchelimsky authored
12 desc "which", "print out the configured rails version"
d756e02 @dchelimsky Dev: enhance thor tasks
dchelimsky authored
13 def which
5687b8d @dchelimsky dev: much simpler management of multiple gemfiles
dchelimsky authored
14 say `cat ./.rails-version`
9a92b75 @dchelimsky dev: no need to update what we just loaded
dchelimsky authored
15 end
aa1a079 @dchelimsky Add thor task for installing bundle with rails-version-specific-gemfile
dchelimsky authored
16 end
Something went wrong with that request. Please try again.