Class: RubyGPG2::Commands::Export

Inherits:
Base
  • Object
show all
Includes:
Mixins::ArmorConfig, Mixins::GlobalConfig, Mixins::OutputConfig
Defined in:
lib/ruby_gpg2/commands/export.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



17
18
19
20
21
22
23
24
25
26
# File 'lib/ruby_gpg2/commands/export.rb', line 17

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

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