module RubyGPG2::Commands::Mixins::GlobalConfig

Public Instance Methods

configure_command(builder, opts) click to toggle source
Calls superclass method
# File lib/ruby_gpg2/commands/mixins/global_config.rb, line 5
def configure_command(builder, opts)
  home_directory = opts[:home_directory]
  without_tty = opts[:without_tty].nil? ? true : opts[:without_tty]

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