Sha256: 0ecaef9e0e413e408c2e1c9f545fb2f09cb7696a40f077c05023c16c4f7ab107
Contents?: true
Size: 405 Bytes
Versions: 7
Compression:
Stored size: 405 Bytes
Contents
# encoding: UTF-8 require 'pmap' require_relative 'process_helper' module ScheduleHelper SCHEDULE_ID = '54b90771e4b067429a27a549' class << self def remove_old_schedules(project) schedules = project.schedules schedules.pmap do |schedule| next if schedule.obj_id == SCHEDULE_ID puts "Deleting #{schedule.inspect}" schedule.delete end end end end
Version data entries
7 entries across 7 versions & 1 rubygems