Sha256: b2a5cde60ead526f873e91ff9cc238578689c7b7fbbf69acd30dff7d2a858883

Contents?: true

Size: 475 Bytes

Versions: 7

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_gpg2-0.13.0.pre.4 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.13.0.pre.3 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.13.0.pre.2 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.13.0.pre.1 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.12.0 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.11.0.pre.7 lib/ruby_gpg2/commands/mixins/without_passphrase.rb
ruby_gpg2-0.11.0.pre.6 lib/ruby_gpg2/commands/mixins/without_passphrase.rb