Class: Transdeps::Reconciler
- Inherits:
-
Struct
- Object
- Struct
- Transdeps::Reconciler
- Defined in:
- lib/transdeps/reconciler.rb
Instance Attribute Summary collapse
-
#factory ⇒ Object
Returns the value of attribute factory.
Instance Method Summary collapse
- #call(component_dir, project_dir) ⇒ Object
-
#initialize(factory = SpecListFactory.new) ⇒ Reconciler
constructor
A new instance of Reconciler.
Constructor Details
#initialize(factory = SpecListFactory.new) ⇒ Reconciler
Returns a new instance of Reconciler.
6 7 8 |
# File 'lib/transdeps/reconciler.rb', line 6 def initialize(factory=SpecListFactory.new) super end |
Instance Attribute Details
#factory ⇒ Object
Returns the value of attribute factory
5 6 7 |
# File 'lib/transdeps/reconciler.rb', line 5 def factory @factory end |
Instance Method Details
#call(component_dir, project_dir) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/transdeps/reconciler.rb', line 10 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 |