lib/capitate/plugins/base.rb in capitate-0.2.6 vs lib/capitate/plugins/base.rb in capitate-0.2.7

- old
+ new

@@ -1,12 +1,5 @@ -#-- -# ============================================================================= -# Copyright (c) 2007, Gabriel Handford (gabrielh@gmail.com) -# All rights reserved. -# ============================================================================= -#++ - require 'erb' require 'yaml' # Capitate base capistrano plugin module Capitate::Plugins::Base @@ -68,16 +61,18 @@ Error: :#{variable} not set. EOS end - message += <<-EOS + if current_task + message += <<-EOS Usage: #{indent_doc(current_task.desc)} - EOS + EOS + end end # Indent string block. # # ==== Options \ No newline at end of file