Module: VagrantPlugins::CaCertificates::Cap::Debian::UpdateCertificateBundle
- Defined in:
- lib/vagrant-ca-certificates/cap/debian/update_certificate_bundle.rb
Overview
Capability for configuring the certificate bundle on Debian.
Class Method Summary collapse
Class Method Details
.update_certificate_bundle(m) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/vagrant-ca-certificates/cap/debian/update_certificate_bundle.rb', line 7 def self.update_certificate_bundle(m) m.communicate.sudo("ls /usr/share/ca-certificates/private | awk '{print \"private/\"$1;}' >> /etc/ca-certificates.conf") # enable our custom certs m.communicate.sudo('update-ca-certificates') do |type, data| if [:stderr, :stdout].include?(type) next if data =~ /stdin: is not a tty/ m.env.ui.info data end end end |