Sha256: 6e58ee7ecbfd592ff9bc6ff69f4214ac919ccea0d5525b5281a2d89538790145

Contents?: true

Size: 707 Bytes

Versions: 21

Compression:

Stored size: 707 Bytes

Contents

module RubyEasyRSA
  module Commands
    module Mixins
      module NetscapeExtensionsConfig
        def configure_command(builder, opts)
          netscape_extensions_support = opts[:netscape_extensions_support]
          netscape_extensions_comment = opts[:netscape_extensions_comment]

          builder = super(builder, opts)
          builder = builder.with_option(
              '--ns-cert', netscape_extensions_support ? 'yes' : 'no'
          ) unless netscape_extensions_support.nil?
          builder = builder.with_option(
              '--ns-comment', netscape_extensions_comment, quoting: '"'
          ) if netscape_extensions_comment
          builder
        end
      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/mixins/netscape_extensions_config.rb