lib/rocketjob.rb in rocketjob-2.0.0.rc3 vs lib/rocketjob.rb in rocketjob-2.0.0

- old
+ new

@@ -5,36 +5,42 @@ require 'mongo_mapper' require 'rocket_job/version' # @formatter:off module RocketJob - autoload :CLI, 'rocket_job/cli' - autoload :Config, 'rocket_job/config' - autoload :DirmonEntry, 'rocket_job/dirmon_entry' - autoload :Heartbeat, 'rocket_job/heartbeat' - autoload :Job, 'rocket_job/job' - autoload :JobException, 'rocket_job/job_exception' - autoload :Worker, 'rocket_job/worker' + autoload :CLI, 'rocket_job/cli' + autoload :Config, 'rocket_job/config' + autoload :DirmonEntry, 'rocket_job/dirmon_entry' + autoload :Heartbeat, 'rocket_job/heartbeat' + autoload :Job, 'rocket_job/job' + autoload :JobException, 'rocket_job/job_exception' + autoload :Worker, 'rocket_job/worker' module Plugins module Job - autoload :Callbacks, 'rocket_job/plugins/job/callbacks' - autoload :Defaults, 'rocket_job/plugins/job/defaults' - autoload :StateMachine, 'rocket_job/plugins/job/state_machine' - autoload :Logger, 'rocket_job/plugins/job/logger' - autoload :Model, 'rocket_job/plugins/job/model' - autoload :Persistence, 'rocket_job/plugins/job/persistence' - autoload :Worker, 'rocket_job/plugins/job/worker' + autoload :Callbacks, 'rocket_job/plugins/job/callbacks' + autoload :Defaults, 'rocket_job/plugins/job/defaults' + autoload :StateMachine, 'rocket_job/plugins/job/state_machine' + autoload :Logger, 'rocket_job/plugins/job/logger' + autoload :Model, 'rocket_job/plugins/job/model' + autoload :Persistence, 'rocket_job/plugins/job/persistence' + autoload :Worker, 'rocket_job/plugins/job/worker' end - autoload :Document, 'rocket_job/plugins/document' - autoload :Restart, 'rocket_job/plugins/restart' - autoload :Singleton, 'rocket_job/plugins/singleton' - autoload :StateMachine, 'rocket_job/plugins/state_machine' + module Rufus + autoload :CronLine, 'rocket_job/plugins/rufus/cron_line' + autoload :ZoTime, 'rocket_job/plugins/rufus/zo_time' + end + autoload :Cron, 'rocket_job/plugins/cron' + autoload :Document, 'rocket_job/plugins/document' + autoload :ProcessingWindow, 'rocket_job/plugins/processing_window' + autoload :Restart, 'rocket_job/plugins/restart' + autoload :Singleton, 'rocket_job/plugins/singleton' + autoload :StateMachine, 'rocket_job/plugins/state_machine' end module Jobs - autoload :DirmonJob, 'rocket_job/jobs/dirmon_job' - autoload :SimpleJob, 'rocket_job/jobs/simple_job' + autoload :DirmonJob, 'rocket_job/jobs/dirmon_job' + autoload :SimpleJob, 'rocket_job/jobs/simple_job' end # @formatter:on # Returns a human readable duration from the supplied [Float] number of seconds def self.seconds_as_duration(seconds)