Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 390 Bytes
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`
Jump to Line
Something went wrong with that request. Please try again.