Sha256: bdf9ece0e3c68f4b8ab83f0d901feac7d86b940e4e980e7ba03f6f51eb1d4816

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'
require_relative 'mixins/armor_config'
require_relative 'mixins/output_config'

module RubyGPG2
  module Commands
    class Export < Base
      include Mixins::GlobalConfig
      include Mixins::ArmorConfig
      include Mixins::OutputConfig

      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
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_gpg2-0.13.0.pre.4 lib/ruby_gpg2/commands/export.rb
ruby_gpg2-0.13.0.pre.3 lib/ruby_gpg2/commands/export.rb
ruby_gpg2-0.13.0.pre.2 lib/ruby_gpg2/commands/export.rb
ruby_gpg2-0.13.0.pre.1 lib/ruby_gpg2/commands/export.rb
ruby_gpg2-0.12.0 lib/ruby_gpg2/commands/export.rb
ruby_gpg2-0.11.0.pre.7 lib/ruby_gpg2/commands/export.rb
ruby_gpg2-0.11.0.pre.6 lib/ruby_gpg2/commands/export.rb