Class: Psychic::Runner::HotRunner
- Inherits:
-
Object
- Object
- Psychic::Runner::HotRunner
- Includes:
- BaseRunner
- Defined in:
- lib/psychic/runner/hot_runner.rb
Constant Summary
Constants included from BaseRunner
BaseRunner::DEFAULT_PARAMS_FILE
Constants included from Shell
Instance Attribute Summary
Attributes included from BaseRunner
#cwd, #env, #hints, #known_tasks
Instance Method Summary collapse
- #[](task_name) ⇒ Object
-
#initialize(opts = {}) ⇒ HotRunner
constructor
A new instance of HotRunner.
Methods included from BaseRunner
#active?, #command_for_task, #dry_run?, #execute, #execute_task, included, #method_missing, #respond_to_missing?
Methods included from Logger
#log_level=, #logger, #new_logger
Methods included from Shell
Constructor Details
#initialize(opts = {}) ⇒ HotRunner
Returns a new instance of HotRunner.
5 6 7 8 9 |
# File 'lib/psychic/runner/hot_runner.rb', line 5 def initialize(opts = {}) super @tasks = hints['tasks'] || {} @known_tasks = @tasks.keys end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Psychic::Runner::BaseRunner
Instance Method Details
#[](task_name) ⇒ Object
11 12 13 |
# File 'lib/psychic/runner/hot_runner.rb', line 11 def [](task_name) @tasks[task_name] end |