Package cherrypy :: Package process :: Module plugins :: Class Autoreloader
[hide private]
[frames] | no frames]

Class Autoreloader

source code

  object --+        
           |        
SimplePlugin --+    
               |    
         Monitor --+
                   |
                  Autoreloader

Monitor which re-executes the process when files change.

Instance Methods [hide private]
 
__init__(self, bus, frequency=1, match='.*')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
start(self)
Start our own perpetual timer thread for self.run.
source code
 
run(self)
Reload the process if registered files have been modified.
source code

Inherited from Monitor: graceful, stop

Inherited from SimplePlugin: subscribe, unsubscribe

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  frequency = 1
  match = '.*'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, bus, frequency=1, match='.*')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

start(self)

source code 

Start our own perpetual timer thread for self.run.

Overrides: Monitor.start