Sha256: d7ae12a4298937c1e7fe1879bacd38f6ff6183d6a050d8b8a277d3c72db65913

Contents?: true

Size: 699 Bytes

Versions: 8

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'
require_relative 'mixins/ssl_config'

module RubyEasyRSA
  module Commands
    class ExportP7 < Base
      include Mixins::GlobalConfig
      include Mixins::SSLConfig

      def configure_command(builder, opts)
        filename_base = opts[:filename_base]
        include_ca = opts[:include_ca].nil? ? true : opts[:include_ca]

        builder = super(builder, opts)
        builder = builder.with_subcommand('export-p7')
        builder = builder.with_argument(filename_base)
        builder = builder.with_argument('noca') unless include_ca
        builder
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_easy_rsa-0.12.0.pre.4 lib/ruby_easy_rsa/commands/export_p7.rb
ruby_easy_rsa-0.12.0.pre.3 lib/ruby_easy_rsa/commands/export_p7.rb
ruby_easy_rsa-0.12.0.pre.2 lib/ruby_easy_rsa/commands/export_p7.rb
ruby_easy_rsa-0.12.0.pre.1 lib/ruby_easy_rsa/commands/export_p7.rb
ruby_easy_rsa-0.11.0 lib/ruby_easy_rsa/commands/export_p7.rb
ruby_easy_rsa-0.10.0.pre.10 lib/ruby_easy_rsa/commands/export_p7.rb
ruby_easy_rsa-0.10.0.pre.9 lib/ruby_easy_rsa/commands/export_p7.rb
ruby_easy_rsa-0.10.0.pre.8 lib/ruby_easy_rsa/commands/export_p7.rb