Class: RubyGPG2::Commands::ExportSecretKeys

Inherits:
Base
  • Object
show all
Includes:
Mixins::ArmorConfig, Mixins::BatchConfig, Mixins::GlobalConfig, Mixins::OutputConfig, Mixins::PassphraseConfig, Mixins::PinentryConfig, Mixins::WithoutPassphrase
Defined in:
lib/ruby_gpg2/commands/export_secret_keys.rb

Instance Method Summary collapse

Methods inherited from Base

#execute, #initialize

Constructor Details

This class inherits a constructor from RubyGPG2::Commands::Base

Instance Method Details

#configure_command(builder, opts) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/ruby_gpg2/commands/export_secret_keys.rb', line 23

def configure_command(builder, opts)
  names = opts[:names] || []

  builder = super(builder, opts)
  builder = builder.with_subcommand('--export-secret-keys')
  names.each do |name|
    builder = builder.with_argument(name)
  end
  builder
end