class Omnitest::Psychic::Factories::HotReadScriptFactory

Public Instance Methods

hot_task_factory() click to toggle source
# File lib/omnitest/psychic/factories/hot_read_task_factory.rb, line 34
def hot_task_factory
  psychic.task_factory_manager.active? HotReadTaskFactory
end
known_script?(script) click to toggle source
# File lib/omnitest/psychic/factories/hot_read_task_factory.rb, line 30
def known_script?(script)
  script_hints.key? script
end
priority_for_script(script) click to toggle source
# File lib/omnitest/psychic/factories/hot_read_task_factory.rb, line 38
def priority_for_script(script)
  if known_script? script
    9
  elsif hot_task_factory.known_task? :run_script
    7
  else
    nil
  end
end
script(script) click to toggle source
# File lib/omnitest/psychic/factories/hot_read_task_factory.rb, line 48
def script(script)
  script_hints[script] || hot_task_factory.task(:run_script)
end
script_hints() click to toggle source
# File lib/omnitest/psychic/factories/hot_read_task_factory.rb, line 26
def script_hints
  psychic.hints.scripts
end