Sha256: 0568bb1317ae76bf0e0e04bf788c4295d1f8fb72db19b92e829fad7ded924c4c

Contents?: true

Size: 664 Bytes

Versions: 2

Compression:

Stored size: 664 Bytes

Contents

require 'lino'

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

module RubyGPG2
  module Commands
    class GenerateKey < Base
      include Mixins::GlobalConfig
      include Mixins::BatchConfig
      include Mixins::PassphraseConfig

      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

2 entries across 2 versions & 1 rubygems

Version Path
ruby_gpg2-0.1.0.pre.11 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.10 lib/ruby_gpg2/commands/generate_key.rb