class Chef::Resource::ChefClientTrustedCertificate

Public Instance Methods

cert_path() click to toggle source

The path to the string on disk

@return [String]

# File lib/chef/resource/chef_client_trusted_certificate.rb, line 94
def cert_path
  path = ::File.join(Chef::Config[:trusted_certs_dir], new_resource.cert_name)
  path << ".pem" unless path.end_with?(".pem")
  path
end