Sha256: 260ca1fbc9a47dc87c0d8891677d8d383fc97d968f0ef34dd4f40ffeef9d01a9

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'

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

      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.3 lib/ruby_gpg2/commands/generate_key.rb
ruby_gpg2-0.1.0.pre.2 lib/ruby_gpg2/commands/generate_key.rb