Module: Bailiff::Apt

Included in:
Context
Defined in:
lib/bailiff/apt.rb

Instance Method Summary collapse

Instance Method Details

#apt(*packages) ⇒ Object



8
9
10
# File 'lib/bailiff/apt.rb', line 8

def apt(*packages)
  "env DEBCONF_TERSE='yes' DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive apt-get --force-yes -qyu install #{packages.join(' ')}"
end

#has_apt(package) ⇒ Object



4
5
6
# File 'lib/bailiff/apt.rb', line 4

def has_apt(package)
  "dpkg --status #{package} | grep \"ok installed\""
end