lib/liberty_buildpack/framework/container_certificate_trust_store.rb
def certificates
      certificates = []

      certificate = nil
      ca_certificates.each_line do |line|
        if line =~ /BEGIN CERTIFICATE/
          certificate = line
        elsif line =~ /END CERTIFICATE/
          certificate += line
          certificates << certificate
          certificate = nil
        elsif !certificate.nil?
          certificate += line
        end
      end

      certificates
    end
# Creates an instance, passing in a context of information available to the component
#
# @param [Hash] context the context that is provided to the instance
# @option context [Hash] :configuration the properties provided by the user
# @option context [String] :app_dir the directory that the application exists in
# @option context [String] :java_home the directory that acts as +JAVA_HOME+
# @option context [Array<String>] :java_opts an array that Java options can be added to
Creates an instance, passing in a context of information available to the component
Creates an instance passing in a context of information available to the component
def certificates
      certificates = []
      certificate = nil
      ca_certificates.each_line do |line|
        if line =~ /BEGIN CERTIFICATE/
          certificate = line
        elsif line =~ /END CERTIFICATE/
          certificate += line
          certificates << certificate
          certificate = nil
        elsif !certificate.nil?
          certificate += line
        end
      end
      certificates
    end
def certificates certificates = [ ] certificate = nil ca_certificates . each_line do | line | if line =~ / BEGIN CERTIFICATE / certificate = line elsif line =~ / END CERTIFICATE / certificate += line certificates << certificate certificate = nil elsif ! certificate . nil? certificate += line end end certificates end
Creates an instance, passing in a context of information available to the component
Creates an instance passing in a context of information available to the component
context the context that is provided to the instance
context the context that is provided to the instance
context
:java_opts an array that Java options can be added to
: java_opts an array that Java options can be added to