Sha256: f9a61612ac288ea823009deab5e51a9ddce2c06e406ae7adf5e9f8e38a6006fa

Contents?: true

Size: 465 Bytes

Versions: 8

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module RubyGPG2
  module Commands
    module Mixins
      module OutputConfig
        def configure_command(builder, opts)
          output_file_path = opts[:output_file_path]

          builder = super(builder, opts)
          if output_file_path
            builder = builder.with_option(
              '--output', output_file_path, 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/output_config.rb
ruby_gpg2-0.11.0.pre.3 lib/ruby_gpg2/commands/mixins/output_config.rb
ruby_gpg2-0.11.0.pre.2 lib/ruby_gpg2/commands/mixins/output_config.rb
ruby_gpg2-0.11.0.pre.1 lib/ruby_gpg2/commands/mixins/output_config.rb
ruby_gpg2-0.10.0 lib/ruby_gpg2/commands/mixins/output_config.rb
ruby_gpg2-0.9.0.pre.9 lib/ruby_gpg2/commands/mixins/output_config.rb
ruby_gpg2-0.9.0.pre.8 lib/ruby_gpg2/commands/mixins/output_config.rb
ruby_gpg2-0.9.0.pre.7 lib/ruby_gpg2/commands/mixins/output_config.rb