We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb66589 commit b8e6e87Copy full SHA for b8e6e87
Thorfile
@@ -1,12 +1,11 @@
1
class Version < Thor
2
+ include Thor::Actions
3
+
4
desc "use VERSION", "installs the bundle the rails-VERSION"
5
def use(version)
- `rm Gemfile.lock`
- `echo #{version} > ./.rails-version`
6
- "bundle install --binstubs".tap do |m|
7
- say m
8
- system m
9
- end
+ remove_file "Gemfile.lock"
+ run "echo '#{version}' > ./.rails-version"
+ run "bundle install --binstubs"
10
end
11
12
desc "which", "print out the configured rails version"
0 commit comments