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, parameters) ⇒ Object



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

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

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