Module: Omnitest::Psychic::ScriptRunner
- Included in:
- Omnitest::Psychic
- Defined in:
- lib/omnitest/psychic/script_runner.rb
Instance Method Summary collapse
Instance Method Details
#known_scripts ⇒ Object
8 9 10 11 12 |
# File 'lib/omnitest/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/omnitest/psychic/script_runner.rb', line 14 def script(script_name) find_in_known_scripts(script_name) || find_in_basedir(script_name) end |
#script_factory_manager ⇒ Object
4 5 6 |
# File 'lib/omnitest/psychic/script_runner.rb', line 4 def script_factory_manager @script_factory_manager ||= ScriptFactoryManager.new(self, opts) end |