Class: MuchKeys::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/muchkeys/cli.rb

Defined Under Namespace

Modules: MuchKeysExecutor

Instance Method Summary collapse

Instance Method Details

#__versionObject



30
31
32
# File 'lib/muchkeys/cli.rb', line 30

def __version
  say MuchKeys::VERSION
end

#decrypt(consul_key) ⇒ Object



20
21
22
# File 'lib/muchkeys/cli.rb', line 20

def decrypt(consul_key)
  say MuchKeysExecutor.decrypt(consul_key, options[:public_key], options[:private_key])
end

#encrypt(file) ⇒ Object



13
14
15
# File 'lib/muchkeys/cli.rb', line 13

def encrypt(file)
  say MuchKeysExecutor.encrypt(file, options[:public_key])
end

#fetch(consul_key) ⇒ Object



25
26
27
# File 'lib/muchkeys/cli.rb', line 25

def fetch(consul_key)
  say MuchKeysExecutor.fetch(consul_key)
end