Class: HelixRuntime::ParentProject
- Inherits:
-
Object
- Object
- HelixRuntime::ParentProject
- Defined in:
- lib/helix_runtime/parent_project.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
- #ensure_built! ⇒ Object
-
#initialize(root) ⇒ ParentProject
constructor
A new instance of ParentProject.
- #outdated_build? ⇒ Boolean
- #projects ⇒ Object
Constructor Details
#initialize(root) ⇒ ParentProject
Returns a new instance of ParentProject.
6 7 8 |
# File 'lib/helix_runtime/parent_project.rb', line 6 def initialize(root) @root = find_root(root) end |
Instance Attribute Details
#root ⇒ Object
Returns the value of attribute root.
4 5 6 |
# File 'lib/helix_runtime/parent_project.rb', line 4 def root @root end |
Instance Method Details
#ensure_built! ⇒ Object
16 17 18 |
# File 'lib/helix_runtime/parent_project.rb', line 16 def ensure_built! projects.each(&:ensure_built!) end |
#outdated_build? ⇒ Boolean
20 21 22 |
# File 'lib/helix_runtime/parent_project.rb', line 20 def outdated_build? projects.any?(&:outdated_build?) end |