Class: DTK::Client::Operation::Module::Install::DependentModules::ComponentDependencyTree::ResolveModules
- Inherits:
-
Object
- Object
- DTK::Client::Operation::Module::Install::DependentModules::ComponentDependencyTree::ResolveModules
- Defined in:
- lib/client/operation/module/install/dependent_modules/component_dependency_tree/resolve_modules.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.resolve_conflicts(parent, opts = {}) ⇒ Object
29 30 31 |
# File 'lib/client/operation/module/install/dependent_modules/component_dependency_tree/resolve_modules.rb', line 29 def self.resolve_conflicts(parent, opts = {}) new(parent, opts).resolve_conflicts end |
Instance Method Details
#resolve_conflicts ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/client/operation/module/install/dependent_modules/component_dependency_tree/resolve_modules.rb', line 32 def resolve_conflicts # TODO: change this simplistic method which does not take into accunt the nested structure. ret = [] @cache.all_modules_refs.each do |module_ref| # For legacy; removing self references if @base_module_ref.same_module?(module_ref) process_when_base_module(module_ref) else process_module_ref!(ret, module_ref) end end ret end |