class SecretKeys::CLI::Decrypt
Public Instance Methods
action_name()
click to toggle source
# File lib/secret_keys/cli.rb, line 234 def action_name "decrypt" end
run!()
click to toggle source
# File lib/secret_keys/cli.rb, line 238 def run! decrypted = secrets.to_h string = (format == :yaml ? YAML.dump(decrypted) : JSON.pretty_generate(decrypted)) string << $/ unless string.end_with?($/) # ensure file ends with system dependent new line $stdout.write(string) $stdout.flush end