Sha256: e6054c0263c48949834bfabe4de1c9052684c205e1b0f2ecfa6d6ea5243c51c5

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module RubyGPG2
  module Commands
    module Mixins
      module WithoutPassphrase
        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
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_gpg2-0.11.0.pre.1 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.10.0 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.9.0.pre.9 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.9.0.pre.8 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.9.0.pre.7 lib/ruby_gpg2/commands/mixins/without_passphrase.rb