class GitCompound::Worker::NameConstraintChecker
Worker
that detects if component name and its manifest name matches This is important because it is additional verification of consistency of manifests
Public Instance Methods
visit_component(component)
click to toggle source
# File lib/git_compound/worker/name_constraint_checker.rb, line 8 def visit_component(component) return unless component.manifest.exists? component_name = component.name manifest_name = component.manifest.name return if component_name == manifest_name raise NameConstraintError, "Name of component `#{component_name}` " \ "does not match name in its manifest (`#{manifest_name}`) !" end