Class: Nvoi::Cli::Credentials::Show::Command
- Inherits:
-
Object
- Object
- Nvoi::Cli::Credentials::Show::Command
- Defined in:
- lib/nvoi/cli/credentials/show/command.rb
Overview
Command handles displaying decrypted credentials
Instance Method Summary collapse
-
#initialize(options) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Command
Returns a new instance of Command.
9 10 11 |
# File 'lib/nvoi/cli/credentials/show/command.rb', line 9 def initialize() = end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/nvoi/cli/credentials/show/command.rb', line 13 def run working_dir = resolve_working_dir manager = Utils::CredentialStore.new(working_dir, [:credentials], [:master_key]) content = manager.read puts content end |