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



7
8
9
10
11
12
13
14
15
# File 'lib/ruby_gpg2/commands/mixins/without_passphrase.rb', line 7

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