Permalink
Browse files

Uses Thor actions where possible

  • Loading branch information...
alindeman committed May 24, 2013
1 parent cb66589 commit b8e6e8790ad1f08ef8b8f6b30882f0588aafbbad
Showing with 5 additions and 6 deletions.
  1. +5 −6 Thorfile
View
@@ -1,12 +1,11 @@
class Version < Thor
+ include Thor::Actions
+
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
+ remove_file "Gemfile.lock"
+ run "echo '#{version}' > ./.rails-version"
+ run "bundle install --binstubs"
end
desc "which", "print out the configured rails version"

0 comments on commit b8e6e87

Please sign in to comment.