Class: Assemblyline::Ruby::Provider::Alpine
- Inherits:
-
Object
- Object
- Assemblyline::Ruby::Provider::Alpine
- Defined in:
- lib/assemblyline/ruby/provider/alpine.rb
Instance Method Summary collapse
-
#initialize(system_packages = SystemPackages.new) ⇒ Alpine
constructor
A new instance of Alpine.
- #install ⇒ Object
- #remove ⇒ Object
Constructor Details
#initialize(system_packages = SystemPackages.new) ⇒ Alpine
Returns a new instance of Alpine.
7 8 9 |
# File 'lib/assemblyline/ruby/provider/alpine.rb', line 7 def initialize(system_packages = SystemPackages.new) @system_packages = system_packages end |
Instance Method Details
#install ⇒ Object
11 12 13 |
# File 'lib/assemblyline/ruby/provider/alpine.rb', line 11 def install add ".a10e.builddeps", system_packages.all + ["su-exec"] end |
#remove ⇒ Object
15 16 17 18 |
# File 'lib/assemblyline/ruby/provider/alpine.rb', line 15 def remove add ".a10e.rundeps", rundeps del ".a10e.builddeps" end |