Class: Secrets::App::Commands::EncryptDecrypt

Inherits:
Command
  • Object
show all
Includes:
Secrets
Defined in:
lib/secrets/app/commands/encrypt_decrypt.rb

Constant Summary

Constants included from Secrets

VERSION

Instance Attribute Summary

Attributes inherited from Command

#cli

Instance Method Summary collapse

Methods included from Secrets

included

Methods inherited from Command

inherited, #initialize, #key, #opts

Constructor Details

This class inherits a constructor from Secrets::App::Commands::Command

Instance Method Details

#runObject



10
11
12
# File 'lib/secrets/app/commands/encrypt_decrypt.rb', line 10

def run
  send(cli.action, content, opts[:private_key])
end