Skip to content
This repository
tag: v2.8.0.rc2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 17 lines (15 sloc) 0.36 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class Version < Thor
  desc "use VERSION", "installs the bundle the rails-VERSION"
  def use(version)
    `rm Gemfile.lock`
    `echo #{version} > ./.rails-version`
    "bundle install --binstubs".tap do |m|
      say m
      system m
    end
  end

  desc "which", "print out the configured rails version"
  def which
    say `cat ./.rails-version`
  end
end
Something went wrong with that request. Please try again.