Sha256: cbc2776ff2aa38ade57678c26d7cb05df1c7b26dbf2cf8833a24656b7ea36e5b

Contents?: true

Size: 1.04 KB

Versions: 27

Compression:

Stored size: 1.04 KB

Contents

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/status_config'
require_relative 'mixins/with_result'
require_relative 'mixins/with_captured_status'
require_relative 'mixins/without_passphrase'

module RubyGPG2
  module Commands
    class GenerateKey < Base
      include Mixins::GlobalConfig
      include Mixins::BatchConfig
      include Mixins::PassphraseConfig
      include Mixins::PinentryConfig
      include Mixins::StatusConfig
      include Mixins::WithResult
      include Mixins::WithCapturedStatus
      include Mixins::WithoutPassphrase

      def configure_command(builder, opts)
        parameter_file_path = opts[:parameter_file_path]

        builder = builder.with_subcommand('--generate-key')
        builder = super(builder, opts)
        builder = builder.with_argument(parameter_file_path) if parameter_file_path
        builder
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ruby_gpg2-0.1.0.pre.21 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.20 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.19 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.18 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.17 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.16 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.15 lib/ruby_gpg2/commands/generate_key.rb