zuazo/ssl_certificate-cookbook

View on GitHub
libraries/resource_ssl_certificate_generators.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class SslCertificate has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

    class SslCertificate < Chef::Resource
      # ssl_certificate Chef Resource cert generator helpers.
      module Generators
        def generate_key(length = 2048)
          OpenSSL::PKey::RSA.new(length).to_pem
Severity: Minor
Found in libraries/resource_ssl_certificate_generators.rb - About 2 hrs to fix

    Method verify_self_signed_cert has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            def verify_self_signed_cert(key, cert, _hostname,
                                        ca_cert_content = nil, pass_phrase = nil)
    Severity: Minor
    Found in libraries/resource_ssl_certificate_generators.rb - About 35 mins to fix

      Method generate_self_signed_cert_with_ca has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              def generate_self_signed_cert_with_ca(key, cert, subject, ca_cert_cont,
                                                    ca_key_cont)
      Severity: Minor
      Found in libraries/resource_ssl_certificate_generators.rb - About 35 mins to fix

        Method generate_cert has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                def generate_cert(key, subject, time, ca_cert_content = nil,
                                  ca_key_content = nil)
        Severity: Minor
        Found in libraries/resource_ssl_certificate_generators.rb - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status