lib/heirloom/cli/rotate.rb in heirloom-0.11.0 vs lib/heirloom/cli/rotate.rb in heirloom-0.11.1
- old
+ new
@@ -2,10 +2,14 @@
module CLI
class Rotate
include Heirloom::CLI::Shared
+ def self.command_summary
+ 'Rotate keys for an Heirloom'
+ end
+
def initialize
@opts = read_options
@logger = HeirloomLogger.new :log_level => @opts[:level]
@config = load_config :logger => @logger,
:opts => @opts
@@ -44,10 +48,10 @@
def read_options
Trollop::options do
version Heirloom::VERSION
banner <<-EOS
-Rotate keys for an Heirloom.
+#{Rotate.command_summary}.
Will download the heirloom to temp directory, decrypt, encrypt, and upload, replacing original.
Usage: