lib/heirloom/cli/destroy.rb in heirloom-0.11.0 vs lib/heirloom/cli/destroy.rb in heirloom-0.11.1
- old
+ new
@@ -2,10 +2,14 @@
module CLI
class Destroy
include Heirloom::CLI::Shared
+ def self.command_summary
+ 'Destroy an Heirloom'
+ end
+
def initialize
@opts = read_options
@logger = HeirloomLogger.new :log_level => @opts[:level]
@config = load_config :logger => @logger,
:opts => @opts
@@ -35,10 +39,10 @@
def read_options
Trollop::options do
version Heirloom::VERSION
banner <<-EOS
-Destroy an Heirloom.
+#{Destroy.command_summary}.
Usage:
heirloom destroy -n NAME -i ID