Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 358 Bytes
class Version < Thor
include Thor::Actions
desc "use VERSION", "installs the bundle the rails-VERSION"
def use(version)
remove_file "Gemfile.lock"
run "echo '#{version}' > ./.rails-version"
run "bundle install --binstubs"
end
desc "which", "print out the configured rails version"
def which
say `cat ./.rails-version`
end
end