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

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



7
8
9
10
11
# File 'lib/ice_cube/validations/schedule_lock.rb', line 7

def schedule_lock(*types)
  types.each do |type|
    validations_for(:"base_#{type}") << Validation.new(type)
  end
end