Class: Assemblyline::Ruby::SystemPackages

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

Instance Method Summary collapse

Constructor Details

#initialize(data = nil) ⇒ SystemPackages

Returns a new instance of SystemPackages.



7
8
9
# File 'lib/assemblyline/ruby/system_packages.rb', line 7

def initialize(data = nil)
  @data = data
end

Instance Method Details

#allObject



15
16
17
# File 'lib/assemblyline/ruby/system_packages.rb', line 15

def all
  build + runtime
end

#any?Boolean

Returns:

  • (Boolean)


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

def any?
  all.any?
end

#buildObject



19
20
21
22
23
# File 'lib/assemblyline/ruby/system_packages.rb', line 19

def build
  buildeps = dependencies("build")
  buildeps += ["git"] if needs_git?
  buildeps
end

#runtimeObject



25
26
27
# File 'lib/assemblyline/ruby/system_packages.rb', line 25

def runtime
  dependencies("runtime")
end