Sha256: 8a38c5aafd78a828192b42dce41d76f752d62c5f72e47b1982b201f360c8e186

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

module RubyGPG2
  module Commands
    module Mixins
      module GlobalConfig
        def configure_command(builder, opts)
          batch = opts[:batch].nil? ? true : opts[:batch]
          home_directory = opts[:home_directory]

          builder = super(builder, opts)
          builder = builder.with_flag('--batch') if batch
          builder = builder.with_option(
              '--homedir', home_directory, quoting: '"') if home_directory
          builder
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_gpg2-0.1.0.pre.3 lib/ruby_gpg2/commands/mixins/global_config.rb
ruby_gpg2-0.1.0.pre.2 lib/ruby_gpg2/commands/mixins/global_config.rb