Module: VagrantPlugins::Certificates::Cap::Redhat::CertificateUploadPath

Defined in:
lib/vagrant-certificates/cap/redhat/certificate_upload_path.rb

Class Method Summary collapse

Class Method Details

.certificate_upload_path(m) ⇒ Object



8
9
10
11
12
13
# File 'lib/vagrant-certificates/cap/redhat/certificate_upload_path.rb', line 8

def self.certificate_upload_path(m)
  m.communicate.tap do |sh|
    return '/etc/pki/tls/private' if Redhat.legacy_certificate_bundle?(sh)
  end
  '/etc/pki/ca-trust/source/anchors'
end