Module: Jerakia::CLI::Secret

Included in:
Jerakia::CLI
Defined in:
lib/jerakia/cli/secret.rb

Defined Under Namespace

Classes: Secret

Class Method Summary collapse

Class Method Details

.included(thor) ⇒ Object


49
50
51
52
53
54
55
# File 'lib/jerakia/cli/secret.rb', line 49

def self.included(thor)
  thor.class_eval do
    info = Secret.provider.loaded? ? "" : "(No encryption provider configured!)"
    desc 'secret [SUBCOMMAND] <options>', "Manage encrypted secrets #{info}"
    subcommand 'secret', Secret
  end
end