Holds hooks that are called before and after cycle and safe_load
Overwrite to add actions after the reload rotation has ended.
# File lib/ramaze/reloader.rb, line 184 def after_cycle; end
Overwrite to add custom hook in addition to default Cache cleaning
# File lib/ramaze/reloader.rb, line 200 def after_safe_load(file) end
Overwrite to add actions after a file is Kernel::load-ed unsuccessfully, by default we output an error-message with the exception.
# File lib/ramaze/reloader.rb, line 205 def after_safe_load_failed(file, error) Log.error(error) end
Overwrite to add actions after a file is Kernel::load-ed successfully, by default we clean the Cache for compiled templates and resolved actions.
# File lib/ramaze/reloader.rb, line 194 def after_safe_load_succeed(file) Cache.clear_after_reload after_safe_load(file) end
Generated with the Darkfish Rdoc Generator 2.