Class: Transdeps::Reconciler
- Inherits:
-
Struct
- Object
- Struct
- Transdeps::Reconciler
- Defined in:
- lib/transdeps/reconciler.rb
Instance Attribute Summary collapse
-
#component_discoverer ⇒ Object
Returns the value of attribute component_discoverer.
-
#spec_list_factory ⇒ Object
Returns the value of attribute spec_list_factory.
Instance Method Summary collapse
- #call(component_dir, project_dir) ⇒ Object
-
#initialize(spec_list_factory = SpecListFactory.new, component_discoverer = DefaultComponentDiscoverer.new) ⇒ Reconciler
constructor
A new instance of Reconciler.
Constructor Details
#initialize(spec_list_factory = SpecListFactory.new, component_discoverer = DefaultComponentDiscoverer.new) ⇒ Reconciler
Returns a new instance of Reconciler.
7 8 9 |
# File 'lib/transdeps/reconciler.rb', line 7 def initialize(spec_list_factory=SpecListFactory.new, component_discoverer=DefaultComponentDiscoverer.new) super end |
Instance Attribute Details
#component_discoverer ⇒ Object
Returns the value of attribute component_discoverer
6 7 8 |
# File 'lib/transdeps/reconciler.rb', line 6 def component_discoverer @component_discoverer end |
#spec_list_factory ⇒ Object
Returns the value of attribute spec_list_factory
6 7 8 |
# File 'lib/transdeps/reconciler.rb', line 6 def spec_list_factory @spec_list_factory end |
Instance Method Details
#call(component_dir, project_dir) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/transdeps/reconciler.rb', line 11 def call(component_dir, project_dir) project_specs = specs_for(project_dir) all_component_specs = all_component_specs(component_dir) spec_differences(project_specs, all_component_specs) end |