Sha256: 221b617df29fa63a5b4e42c174c58e900bf0713d0b3a4d899ba2286e66533ff8

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

module RubyGPG2
  module Commands
    module Mixins
      module WithoutPassphrase
        def configure_command(builder, opts)
          without_passphrase = opts[:without_passphrase]
          if without_passphrase
            opts = opts.merge(passphrase: '',
                              pinentry_mode: :loopback)
          end
          super(builder, opts)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_gpg2-0.11.0.pre.4 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.11.0.pre.3 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.11.0.pre.2 lib/ruby_gpg2/commands/mixins/without_passphrase.rb