Module: RubyGPG2::Commands::Mixins::WithoutPassphrase

Included in:
Decrypt, ExportSecretKeys, GenerateKey
Defined in:
lib/ruby_gpg2/commands/mixins/without_passphrase.rb

Instance Method Summary collapse

Instance Method Details

#configure_command(builder, opts) ⇒ Object



5
6
7
8
9
10
# File 'lib/ruby_gpg2/commands/mixins/without_passphrase.rb', line 5

def configure_command(builder, opts)
  without_passphrase = opts[:without_passphrase]
  super(builder, without_passphrase ?
      opts.merge(passphrase: '', pinentry_mode: :loopback) :
      opts)
end