diff options
author | Teddy Wing | 2017-04-29 23:47:42 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 23:47:42 +0200 |
commit | f59507205062a0910d8ec9bd41269c0d0e9c3296 (patch) | |
tree | db9ea1e91edec40a784c5fe1c7a0a15bd8736611 | |
parent | 96ffac15299beca07a0671cdbed13b137a9aa4c4 (diff) | |
download | dbshell-rails-f59507205062a0910d8ec9bd41269c0d0e9c3296.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..48a03e8 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 |