Class: Transdeps::Reconciler

Inherits:
Struct
  • Object
show all
Defined in:
lib/transdeps/reconciler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#factoryObject

Returns the value of attribute factory

Returns:

  • (Object)

    the current value of 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