From 5a8c88d3771018978be8f5fb05f44f6d8aba5e7e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 23:47:42 +0200 Subject: dbshell.rake: Add a short description to our task This has the additional benefit of making it appear in the `rake -T` output. --- lib/dbshell/rails/tasks/dbshell.rake | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3