Sha256: 0361561624f21c758c280f22ab87a6d2ad55f84f617dc298bddf053022ed6b9d

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

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

          builder = super(builder, opts)
          if home_directory
            builder = builder.with_option(
              '--homedir', home_directory, quoting: '"'
            )
          end
          builder = builder.with_flag('--no-tty') if without_tty
          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/global_config.rb
ruby_gpg2-0.11.0.pre.3 lib/ruby_gpg2/commands/mixins/global_config.rb
ruby_gpg2-0.11.0.pre.2 lib/ruby_gpg2/commands/mixins/global_config.rb
ruby_gpg2-0.11.0.pre.1 lib/ruby_gpg2/commands/mixins/global_config.rb
ruby_gpg2-0.10.0 lib/ruby_gpg2/commands/mixins/global_config.rb
ruby_gpg2-0.9.0.pre.9 lib/ruby_gpg2/commands/mixins/global_config.rb
ruby_gpg2-0.9.0.pre.8 lib/ruby_gpg2/commands/mixins/global_config.rb
ruby_gpg2-0.9.0.pre.7 lib/ruby_gpg2/commands/mixins/global_config.rb