lib/cobra_commander/umbrella.rb in cobra_commander-0.14.0 vs lib/cobra_commander/umbrella.rb in cobra_commander-0.15.0
- old
+ new
@@ -26,27 +26,17 @@
component.root_paths.include?(component_root_path)
end
end
def add_source(key, source)
- @root_component.add_source key, source.path, source.dependencies
- source.components.each do |component|
- @components[component[:name]] ||= Component.new(self, component[:name])
- @components[component[:name]].add_source key, component[:path], component[:dependencies]
+ @root_component.add_package key, source.root
+ source.packages.each do |packages|
+ @components[packages.name] ||= Component.new(self, packages.name)
+ @components[packages.name].add_package key, packages
end
end
def components
@components.values
- end
-
- def dependents_of(component)
- find(component)&.deep_dependents
- &.sort_by(&:name)
- end
-
- def dependencies_of(name)
- find(name)&.deep_dependencies
- &.sort_by(&:name)
end
end
end