Sha256: e7eef62ab7f4fc5095741611f0139fc861409b634165c0f00eab03e8979b2b0e

Contents?: true

Size: 1001 Bytes

Versions: 8

Compression:

Stored size: 1001 Bytes

Contents

# frozen_string_literal: true

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'
require_relative 'mixins/batch_config'
require_relative 'mixins/passphrase_config'
require_relative 'mixins/pinentry_config'
require_relative 'mixins/armor_config'
require_relative 'mixins/output_config'
require_relative 'mixins/without_passphrase'

module RubyGPG2
  module Commands
    class ExportSecretKeys < Base
      include Mixins::GlobalConfig
      include Mixins::BatchConfig
      include Mixins::PassphraseConfig
      include Mixins::PinentryConfig
      include Mixins::ArmorConfig
      include Mixins::OutputConfig
      include Mixins::WithoutPassphrase

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_gpg2-0.11.0.pre.4 lib/ruby_gpg2/commands/export_secret_keys.rb
ruby_gpg2-0.11.0.pre.3 lib/ruby_gpg2/commands/export_secret_keys.rb
ruby_gpg2-0.11.0.pre.2 lib/ruby_gpg2/commands/export_secret_keys.rb
ruby_gpg2-0.11.0.pre.1 lib/ruby_gpg2/commands/export_secret_keys.rb
ruby_gpg2-0.10.0 lib/ruby_gpg2/commands/export_secret_keys.rb
ruby_gpg2-0.9.0.pre.9 lib/ruby_gpg2/commands/export_secret_keys.rb
ruby_gpg2-0.9.0.pre.8 lib/ruby_gpg2/commands/export_secret_keys.rb
ruby_gpg2-0.9.0.pre.7 lib/ruby_gpg2/commands/export_secret_keys.rb