engines/adva_newsletter/vendor/gems/cronedit-0.3.0/lib/cronedit.rb
def commit
            # merge crontab
            currentEntries, lines = listFull()
            mergedEntries = nil
            # install it
            io = getOutput
            begin
                mergedEntries = dumpCron currentEntries, lines, io
            ensure
                io.close if @opts[:close_output]
            end
            # No idea why but without this any wait crontab reads and writes appears not synchronizes
            sleep 0.01
            #clean changes :)
            rollback()
            mergedEntries
        end
# Merges the existing crontab with all modifications and installs the new crontab.
# returns the merged parsed crontab hash
Merges the existing crontab with all modifications and installs the new crontab.
returns the merged parsed crontab hash
Merges the existing crontab with all modifications and installs the new crontab . returns the merged parsed crontab hash
def commit
            currentEntries, lines = listFull()
            mergedEntries = nil
            io = getOutput
            begin
                mergedEntries = dumpCron currentEntries, lines, io
            ensure
                io.close if @opts[:close_output]
            end
            sleep 0.01
            rollback()
            mergedEntries
        end
def commit currentEntries , lines = listFull ( ) mergedEntries = nil io = getOutput begin mergedEntries = dumpCron currentEntries , lines , io ensure io . close if @opts [ :close_output ] end sleep 0.01 rollback ( ) mergedEntries end
Merges the existing crontab with all modifications and installs the new crontab.
Merges the existing crontab with all modifications and installs the new crontab .
# merge crontab # install it # No idea why but without this any wait crontab reads and writes appears not synchronizes #clean changes :)