Module: RubyGPG2::Commands::Mixins::GlobalConfig
- Included in:
- Decrypt, Encrypt, Export, ExportSecretKeys, GenerateKey, Import, ListPublicKeys, ListSecretKeys
- Defined in:
- lib/ruby_gpg2/commands/mixins/global_config.rb
Instance Method Summary collapse
Instance Method Details
#configure_command(builder, opts) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# 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 |