Sha256: 6ae0a391c84892e5c6d4b28e359e499d67473f735acda7c3e6cf07e954249dca

Contents?: true

Size: 449 Bytes

Versions: 8

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module RubyGPG2
  module Commands
    module Mixins
      module PassphraseConfig
        def configure_command(builder, opts)
          passphrase = opts[:passphrase]

          builder = super(builder, opts)
          if passphrase
            builder = builder.with_option(
              '--passphrase', passphrase, quoting: '"'
            )
          end
          builder
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_gpg2-0.11.0.pre.4 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.11.0.pre.3 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.11.0.pre.2 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.11.0.pre.1 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.10.0 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.9.0.pre.9 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.9.0.pre.8 lib/ruby_gpg2/commands/mixins/passphrase_config.rb
ruby_gpg2-0.9.0.pre.7 lib/ruby_gpg2/commands/mixins/passphrase_config.rb