Class: Koch::Packages

Inherits:
Array
  • Object
show all
Defined in:
lib/koch/install_package.rb

Overview

A list of packages

Instance Method Summary collapse

Instance Method Details

#apply!Object



6
7
8
9
10
# File 'lib/koch/install_package.rb', line 6

def apply!
  ENV["DEBIAN_FRONTEND"] = "noninteractive"
  maybe("apt -y install #{installs.join(" ")}") unless installs.empty?
  maybe("apt -y purge #{deletes.join(" ")}") unless deletes.empty?
end