Sha256: 62f496ead229fa92e7a7e5d18e08cbb7e77b1d6a3ef1aae46d88e2432db796d7

Contents?: true

Size: 641 Bytes

Versions: 21

Compression:

Stored size: 641 Bytes

Contents

module RubyEasyRSA
  module Commands
    module Mixins
      module ExtraExtensionsConfig
        def configure_command(builder, opts)
          extra_extensions = opts[:extra_extensions]
          subject_alternative_name = opts[:subject_alternative_name]

          builder = super(builder, opts)
          builder = builder.with_environment_variable(
              'EASYRSA_EXTRA_EXT', extra_extensions) if extra_extensions
          builder = builder.with_option(
              '--subject-alt-name', subject_alternative_name, quoting: '"'
          ) if subject_alternative_name
          builder
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ruby_easy_rsa-0.10.0.pre.7 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.6 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.5 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.4 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.3 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.2 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.1 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.9.0 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.8.0.pre.1 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.7.0 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.6.0.pre.2 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.6.0.pre.1 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.5.0 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.4.0.pre.1 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.3.0 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.2.0.pre.11 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.2.0.pre.10 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.2.0.pre.9 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.2.0.pre.8 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb
ruby_easy_rsa-0.2.0.pre.7 lib/ruby_easy_rsa/commands/mixins/extra_extensions_config.rb