Class: Nvoi::Cli::Credentials::Show::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/nvoi/cli/credentials/show/command.rb

Overview

Command handles displaying decrypted credentials

Instance Method Summary collapse

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(options)
  @options = options
end

Instance Method Details

#runObject



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, @options[:credentials], @options[:master_key])

  content = manager.read
  puts content
end