engines/adva_newsletter/vendor/gems/cronedit-0.3.0/lib/cronedit.rb
# Bulk addition/merging of  crontab definitions from another Crontab (FileCrontab, DummyCrontab, or a Crontab of another user)
Bulk addition/merging of  crontab definitions from another Crontab (FileCrontab, DummyCrontab, or a Crontab of another user)
Bulk addition / merging of crontab definitions from another Crontab ( FileCrontab DummyCrontab or a Crontab of another user )
def merge aCrontab
            entries, lines = aCrontab.listFull
            @adds.merge! entries
            aCrontab.adds.each {|k,v| @adds[k]=v}
            aCrontab.removals.each {|k,v| remove k}
            self
        end
def merge aCrontab entries , lines = aCrontab . listFull @adds . merge! entries aCrontab . adds . each { | k , v | @adds [ k ] = v } aCrontab . removals . each { | k , v | remove k } self end
Bulk addition/merging of  crontab definitions from another Crontab (FileCrontab, DummyCrontab, or a Crontab of another user)
Bulk addition / merging of crontab definitions from another Crontab ( FileCrontab DummyCrontab or a Crontab of another user )
#todo: we throw the incoming lines away #merge original data #merge noncommited data as well
aCrontab