lib/woodhouse.rb in woodhouse-0.1.2 vs lib/woodhouse.rb in woodhouse-0.1.5

- old
+ new

@@ -56,18 +56,26 @@ # Returns +true+ on JRuby, Rubinius, or MRI 1.9. +false+ otherwise. def threading_safe? RUBY_VERSION.to_f >= 1.9 or %w[jruby rbx].include?(RUBY_ENGINE) end + def dispatcher + global_configuration.dispatcher + end + def dispatch(*a) - global_configuration.dispatcher.dispatch(*a) + dispatcher.dispatch(*a) end def update_job(*a) - global_configuration.dispatcher.update_job(*a) + dispatcher.update_job(*a) end + def watchdog + Woodhouse::Watchdog.instance + end + end extend GlobalMethods end @@ -90,9 +98,10 @@ require 'woodhouse/middleware' require 'woodhouse/rails' require 'woodhouse/process' require 'woodhouse/layout_serializer' require 'woodhouse/trigger_set' +require 'woodhouse/watchdog' require 'woodhouse/extension' require 'woodhouse/extensions/progress' require 'woodhouse/extensions/new_relic'