Class: Bard::Provision::Apt

Inherits:
Bard::Provision show all
Defined in:
lib/bard/provision/apt.rb

Overview

apt sanity

Instance Attribute Summary

Attributes inherited from Bard::Provision

#config, #ssh_url

Instance Method Summary collapse

Methods inherited from Bard::Provision

call

Instance Method Details

#callObject



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