Module: IceCube::Validations::ScheduleLock
- Included in:
- IceCube::ValidatedRule
- Defined in:
- lib/ice_cube/validations/schedule_lock.rb
Defined Under Namespace
Classes: Validation
Instance Method Summary collapse
-
#schedule_lock(*types) ⇒ Object
Lock the given time units to the units from schedule’s
start_time
These locks are all clobberable by other rules of the same #type usingclobber_base_validation
.
Instance Method Details
#schedule_lock(*types) ⇒ Object
Lock the given time units to the units from schedule’s start_time
These locks are all clobberable by other rules of the same #type using clobber_base_validation
9 10 11 12 13 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 9 def schedule_lock(*types) types.each do |type| validations_for(:"base_#{type}") << Validation.new(type) end end |