Class: Koch::SnapPackages
- Inherits:
-
Array
- Object
- Array
- Koch::SnapPackages
- Defined in:
- lib/koch/install_snap_package.rb
Overview
A list of snap packages
Instance Method Summary collapse
Instance Method Details
#apply! ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/koch/install_snap_package.rb', line 8 def apply! # We cannot install from multiple stores in one go, let's split the installs up. installs.each do |pkg| maybe("snap install --classic #{pkg}") end maybe("snap remove #{deletes.join(" ")}") unless deletes.empty? end |