Sha256: de822e245365331280c7f166869bb8290f8a2d7d3ade1f2fab745be9b45958fc

Contents?: true

Size: 439 Bytes

Versions: 7

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

module RubyGPG2
  module Commands
    module Mixins
      module PassphraseConfig
        private

        def configure_command(builder, parameters)
          passphrase = parameters[:passphrase]

          b = super
          if passphrase
            b = b.with_option(
              '--passphrase', passphrase, quoting: '"'
            )
          end
          b
        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/passphrase_config.rb
ruby_gpg2-0.13.0.pre.3 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.13.0.pre.2 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.13.0.pre.1 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.12.0 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.11.0.pre.7 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.11.0.pre.6 lib/ruby_gpg2/commands/mixins/passphrase_config.rb