Class: Bard::Provision::Apt
- Inherits:
-
Bard::Provision
- Object
- Struct
- Bard::Provision
- Bard::Provision::Apt
- Defined in:
- lib/bard/provision/apt.rb
Overview
apt sanity
Instance Attribute Summary
Attributes inherited from Bard::Provision
Instance Method Summary collapse
Methods inherited from Bard::Provision
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/bard/provision/apt.rb', line 4 def call print "Apt:" provision_server.run! [ %(echo "\\$nrconf{restart} = \\"a\\";" | sudo tee /etc/needrestart/conf.d/90-autorestart.conf), "sudo apt-get update -y", "sudo apt-get upgrade -y", "sudo apt-get install -y curl", ].join("; "), home: true puts " ✓" end |