W3cubDocs

/Padrino

Module: Padrino::Reloader

Extended by:
Reloader
Included in:
Reloader

Overview

High performance source code reloader middleware

Defined Under Namespace

Modules: Storage Classes: Rack

Constant Summary

MTIMES =

The modification times for every file in a project.

{}

Instance Method Summary

Instance Method Details

#changed? ⇒ Boolean

Returns true if any file changes are detected.

Returns:

  • (Boolean)

#clear! ⇒ Object

Remove files and classes loaded with stat

#exclude ⇒ Object

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

#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. Default included constants are: [none]

#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.

© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Reloader