View Source Venomous.SerpentWatcher (Venomous v0.7.7)
🐍🔎 📁 A snake spy watching every step...
Disabled by default. config :venomous, :serpent_watcher, enable: true
to enable.
Starts python watchdog process, watching over every python module inside module_paths directories.
Default watcher requires watchdog module, which can be installed with mix venomous.watchdog install
Whenever file is edited/created/deleted watcher casts :reload
with module name to SnakeManager.
The default reload module function imports and reloads the module from its name.
## Configuration
config :venomous,
serpent_watcher: [
enable: true, # Disabled by default
logging: true, # Hot reload logging. Enabled by default
module: :serpent_watcher, # default
func: :watch_directories, #default
manager_pid: Venomous.SnakeManager # default
]
config :venomous, :snake_manager, %{
...
reload_module: :reload, # default. reload function is hard coded to :reload
...
}
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.handle_continue/2
.
Callback implementation for GenServer.init/1
.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.handle_continue/2
.
Callback implementation for GenServer.init/1
.