Class: Wolverine::Configuration
- Inherits:
-
Struct
- Object
- Struct
- Wolverine::Configuration
- Defined in:
- lib/wolverine/configuration.rb
Instance Attribute Summary collapse
-
#instrumentation ⇒ #call
Wolverine.config.instrumentation can be used to specify a callback to fire with the runtime of each script.
-
#redis ⇒ Redis
The redis connection actively in use by Wolverine.
-
#script_path ⇒ Pathname
The path wolverine will check for scripts.
Instance Attribute Details
#instrumentation ⇒ #call
Wolverine.config.instrumentation can be used to specify a callback to fire with the runtime of each script. This can be useful for analyzing scripts to make sure they aren’t running for an unreasonable amount of time.
The proc will receive three parameters:
-
script_name: A unique identifier for the script, based on its location in the file system -
runtime: A float, the total execution time of the script -
eval_type: Eitherevalorevalsha, the method used to run the script
23 24 25 |
# File 'lib/wolverine/configuration.rb', line 23 def instrumentation @instrumentation end |
#redis ⇒ Redis
5 6 7 |
# File 'lib/wolverine/configuration.rb', line 5 def redis @redis end |
#script_path ⇒ Pathname
28 29 30 |
# File 'lib/wolverine/configuration.rb', line 28 def script_path @script_path end |