Class: GitCompound::Worker::CircularDependencyChecker

Inherits:
Worker
  • Object
show all
Defined in:
lib/git_compound/worker/circular_dependency_checker.rb

Overview

Worker that checks if unwanted circular dependency exists

Instance Method Summary collapse

Methods inherited from Worker

#visit_task

Instance Method Details

#visit_component(component) ⇒ Object



6
7
8
9
# File 'lib/git_compound/worker/circular_dependency_checker.rb', line 6

def visit_component(component)
  @element = component
  raise_error if circular_dependency_exists?
end

#visit_manifest(manifest) ⇒ Object



11
12
13
14
# File 'lib/git_compound/worker/circular_dependency_checker.rb', line 11

def visit_manifest(manifest)
  @element = manifest
  raise_error if circular_dependency_exists?
end