diff options
author | Teddy Wing | 2017-04-29 23:47:42 +0200 |
---|---|---|
committer | Teddy Wing | 2017-05-01 02:30:55 +0200 |
commit | 5a8c88d3771018978be8f5fb05f44f6d8aba5e7e (patch) | |
tree | 88b60523b2ac67efa4a36d3581374b4a51f23a94 | |
parent | 96ffac15299beca07a0671cdbed13b137a9aa4c4 (diff) | |
download | dbshell-rails-5a8c88d3771018978be8f5fb05f44f6d8aba5e7e.tar.bz2 |
dbshell.rake: Add a short description to our task
This has the additional benefit of making it appear in the `rake -T`
output.
-rw-r--r-- | lib/dbshell/rails/tasks/dbshell.rake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dbshell/rails/tasks/dbshell.rake b/lib/dbshell/rails/tasks/dbshell.rake index 44d7948..91f6405 100644 --- a/lib/dbshell/rails/tasks/dbshell.rake +++ b/lib/dbshell/rails/tasks/dbshell.rake @@ -1,5 +1,8 @@ require 'dbshell/client/database' +DESCRIPTION = 'Open a database shell' + +desc DESCRIPTION task :dbshell do env = ENV.fetch('RAILS_ENV', 'development') @@ -10,5 +13,6 @@ end # Alias 'dbshell' to 'db:shell' namespace :db do + desc DESCRIPTION task shell: :dbshell end |