Class: RubyGPG2::Commands::Import

Inherits:
Base
  • Object
show all
Includes:
Mixins::BatchConfig, Mixins::GlobalConfig, Mixins::StatusConfig, Mixins::WithCapturedStatus
Defined in:
lib/ruby_gpg2/commands/import.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



19
20
21
22
23
24
25
26
27
28
# File 'lib/ruby_gpg2/commands/import.rb', line 19

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

  b = super
  b = b.with_subcommand('--import')
  key_file_paths.each do |key_file_path|
    b = b.with_argument(key_file_path)
  end
  b
end