lib/wolverine.rb in wolverine-0.2.6 vs lib/wolverine.rb in wolverine-0.2.7

- old
+ new

@@ -21,9 +21,17 @@ # @return [Redis] the redis connection used by Wolverine def self.redis config.redis end + def self.statsd_enabled? + @statsd_enabled + end + + def self.enable_statsd! + @statsd_enabled = true + end + # Resets all the scripts cached by Wolverine. Scripts are lazy-loaded and # cached in-memory, so if a file changes on disk, it will be necessary to # manually reset the cache using +reset!+. # # @return [void]