Class: Psychic::Runner::HotRunner

Inherits:
Object
  • Object
show all
Includes:
BaseRunner
Defined in:
lib/psychic/runner/hot_runner.rb

Constant Summary

Constants included from BaseRunner

BaseRunner::DEFAULT_PARAMS_FILE

Constants included from Shell

Shell::AVAILABLE_OPTIONS

Instance Attribute Summary

Attributes included from BaseRunner

#cwd, #env, #hints, #known_tasks

Instance Method Summary collapse

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

#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