Maintenance: Cleanup of unused Sequencer Unit after refactoring to Import::Common::Model::Skip::MissingMandatory::Base.
This commit is contained in:
parent
944affe2a2
commit
6c3d8b8b36
1 changed files with 0 additions and 36 deletions
|
@ -1,36 +0,0 @@
|
||||||
class Sequencer
|
|
||||||
class Unit
|
|
||||||
module Import
|
|
||||||
module Common
|
|
||||||
module Model
|
|
||||||
module Attributes
|
|
||||||
class CheckMandatory < Sequencer::Unit::Base
|
|
||||||
prepend ::Sequencer::Unit::Import::Common::Model::Mixin::Skip::Action
|
|
||||||
|
|
||||||
skip_any_action
|
|
||||||
|
|
||||||
uses :mapped
|
|
||||||
provides :action
|
|
||||||
|
|
||||||
def process
|
|
||||||
mandatory.each do |mapped_attribute|
|
|
||||||
next if mapped[mapped_attribute].present?
|
|
||||||
|
|
||||||
logger.info { "Skipping. Missing mandatory attribute '#{mapped_attribute}'." }
|
|
||||||
state.provide(:action, :skipped)
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def mandatory
|
|
||||||
raise "Missing implementation of '#{__method__}' method for '#{self.class.name}'"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in a new issue