Module: Crosstest::Psychic::ScriptRunner

Included in:
Crosstest::Psychic
Defined in:
lib/crosstest/psychic/script_runner.rb

Instance Method Summary collapse

Instance Method Details

#known_scriptsObject


8
9
10
11
12
# File 'lib/crosstest/psychic/script_runner.rb', line 8

def known_scripts
  @known_scripts ||= hints.scripts.map do | script_name, script_file |
    Script.new(self, script_name, script_file, opts)
  end
end

#script(script_name) ⇒ Object


14
15
16
# File 'lib/crosstest/psychic/script_runner.rb', line 14

def script(script_name)
  find_in_known_scripts(script_name) || find_in_basedir(script_name)
end

#script_factory_managerObject


4
5
6
# File 'lib/crosstest/psychic/script_runner.rb', line 4

def script_factory_manager
  @script_factory_manager ||= ScriptFactoryManager.new(self, opts)
end