Class: Sym::App::Commands::PrintKey

Inherits:
BaseCommand show all
Defined in:
lib/sym/app/commands/print_key.rb

Constant Summary

Constants included from Sym

DESCRIPTION, VERSION

Instance Method Summary collapse

Methods included from Sym

config, default_key, default_key?, default_key_file

Constructor Details

This class inherits a constructor from Sym::App::Commands::BaseCommand

Instance Method Details

#executeObject



12
13
14
15
# File 'lib/sym/app/commands/print_key.rb', line 12

def execute
  raise Sym::Errors::NoPrivateKeyFound.new("Unable to resolve private key from argument '#{opts[:key]}'") if self.key.nil?
  self.key
end