Sha256: 3a3820adf5180c0f958a0b87917c33a60a9431b35c74974e47678dbb5dba5c9a

Contents?: true

Size: 481 Bytes

Versions: 7

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

module RubyGPG2
  module Commands
    module Mixins
      module BatchConfig
        private

        def parameter_defaults(parameters)
          batch = parameters[:batch]
          super.merge(batch: batch.nil? ? true : batch)
        end

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

          b = super
          b = b.with_flag('--batch') if batch
          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/batch_config.rb
ruby_gpg2-0.13.0.pre.3 lib/ruby_gpg2/commands/mixins/batch_config.rb
ruby_gpg2-0.13.0.pre.2 lib/ruby_gpg2/commands/mixins/batch_config.rb
ruby_gpg2-0.13.0.pre.1 lib/ruby_gpg2/commands/mixins/batch_config.rb
ruby_gpg2-0.12.0 lib/ruby_gpg2/commands/mixins/batch_config.rb
ruby_gpg2-0.11.0.pre.7 lib/ruby_gpg2/commands/mixins/batch_config.rb
ruby_gpg2-0.11.0.pre.6 lib/ruby_gpg2/commands/mixins/batch_config.rb