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



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

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

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