Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v2.6.0.rc6
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (10 sloc) 0.39 kb
class Rails < Thor
desc "use VERSION", "installs the bundle using gemfiles/rails-VERSION"
def use(version)
gemfile = "--gemfile gemfiles/rails-#{version}"
say `bundle install #{gemfile} --binstubs`
say `bundle #{gemfile} update rails` unless version =~ /^\d\.\d\.\d$/
say `ln -s gemfiles/bin` unless File.exist?('bin')
`echo rails-#{version} > ./.gemfile`
end
end
Jump to Line
Something went wrong with that request. Please try again.