Sha256: f2788ff77a381214ae7345abf942eeec51bba20a6f5c29c537f63b5fc558aabf

Contents?: true

Size: 598 Bytes

Versions: 9

Compression:

Stored size: 598 Bytes

Contents

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'
require_relative 'mixins/batch_config'

module RubyGPG2
  module Commands
    class Import < Base
      include Mixins::GlobalConfig
      include Mixins::BatchConfig

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_gpg2-0.1.0.pre.25 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.24 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.23 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.22 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.21 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.20 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.19 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.18 lib/ruby_gpg2/commands/import.rb
ruby_gpg2-0.1.0.pre.17 lib/ruby_gpg2/commands/import.rb