Sha256: ac3a1fffc975445ceea46833d62161e4b08bc6d55e195b4c53521588d5db1af2

Contents?: true

Size: 684 Bytes

Versions: 21

Compression:

Stored size: 684 Bytes

Contents

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'
require_relative 'mixins/ssl_config'
require_relative 'mixins/algorithm_config'
require_relative 'mixins/encrypt_key_config'

module RubyEasyRSA
  module Commands
    class BuildCA < Base
      include Mixins::GlobalConfig
      include Mixins::SSLConfig
      include Mixins::AlgorithmConfig
      include Mixins::EncryptKeyConfig

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

        builder = builder.with_subcommand('build-ca')
        builder = builder.with_argument('subca') if sub_ca
        builder = super(builder, opts)
        builder
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ruby_easy_rsa-0.2.0.pre.6 lib/ruby_easy_rsa/commands/build_ca.rb