Class: Assemblyline::Ruby::SystemPackages
- Inherits:
-
Object
- Object
- Assemblyline::Ruby::SystemPackages
- Defined in:
- lib/assemblyline/ruby/system_packages.rb
Instance Method Summary collapse
- #all ⇒ Object
- #any? ⇒ Boolean
- #build ⇒ Object
-
#initialize(data = nil) ⇒ SystemPackages
constructor
A new instance of SystemPackages.
- #runtime ⇒ Object
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
#all ⇒ Object
15 16 17 |
# File 'lib/assemblyline/ruby/system_packages.rb', line 15 def all build + runtime end |
#any? ⇒ Boolean
11 12 13 |
# File 'lib/assemblyline/ruby/system_packages.rb', line 11 def any? all.any? end |
#build ⇒ Object
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 |
#runtime ⇒ Object
25 26 27 |
# File 'lib/assemblyline/ruby/system_packages.rb', line 25 def runtime dependencies("runtime") end |