Class: Assemblyline::Ruby::Provider::Alpine

Inherits:
Object
  • Object
show all
Defined in:
lib/assemblyline/ruby/provider/alpine.rb

Instance Method Summary collapse

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

#installObject



11
12
13
# File 'lib/assemblyline/ruby/provider/alpine.rb', line 11

def install
  add ".a10e.builddeps", system_packages.all + ["su-exec"]
end

#removeObject



15
16
17
18
# File 'lib/assemblyline/ruby/provider/alpine.rb', line 15

def remove
  add ".a10e.rundeps", rundeps
  del ".a10e.builddeps"
end