Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 4aac27a953
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (15 sloc) 0.465 kB
class Rails < Thor
desc "use VERSION", "configures the Gemfile and runs 'bundle install'"
def use(version)
`rm Gemfile.lock` if File.exist?('./Gemfile.lock')
`rm Gemfile` if File.exist?('./Gemfile')
case version
when /^\d\.\d/
`echo 'instance_eval(File.read("Gemfile-base"))' >> Gemfile`
`echo 'gem "rails", "#{version}"' >> Gemfile`
else
`cp Gemfile-#{version} Gemfile`
end
system "bundle install"
end
end
Jump to Line
Something went wrong with that request. Please try again.