High performance source code reloader middleware
Modules: Storage Classes: Rack
The modification times for every file in a project.
{}
#changed? ⇒ Boolean
Returns true if any file changes are detected. #clear! ⇒ Object
Remove files and classes loaded with stat. #exclude ⇒ Object
Specified folders can be excluded from the code reload detection process. #exclude_constants ⇒ Object
Specified constants can be excluded from the code unloading process. #include_constants ⇒ Object
Specified constants can be configured to be reloaded on every request. #lock! ⇒ Object
We lock dependencies sets to prevent reloading of protected constants. #reload! ⇒ Object
Reload apps and files with changes detected. #remove_constant(const) ⇒ Object
Removes the specified class and constant. #remove_feature(file) ⇒ Object
Remove a feature from $LOADED_FEATURES so it can be required again. #safe_load(file, options = {}) ⇒ Object
A safe Kernel::require which issues the necessary hooks depending on results. #special_files ⇒ Object
Returns the list of special tracked files for Reloader. #special_files=(files) ⇒ Object
Sets the list of special tracked files for Reloader. Returns true if any file changes are detected.
Remove files and classes loaded with stat
Specified folders can be excluded from the code reload detection process. Default excluded directories at Padrino.root are: test, spec, features, tmp, config, db and public
Specified constants can be excluded from the code unloading process.
Specified constants can be configured to be reloaded on every request. Default included constants are: [none]
We lock dependencies sets to prevent reloading of protected constants
Reload apps and files with changes detected.
Removes the specified class and constant.
Remove a feature from $LOADED_FEATURES so it can be required again.
A safe Kernel::require which issues the necessary hooks depending on results
Returns the list of special tracked files for Reloader.
Sets the list of special tracked files for Reloader.
© 2010–2019 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Reloader