Sha256: ec6f71ba0680c4816a7f4b7743105a285ae3d435ad62d6136bb640ec68a7bd7e
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
module Omnitest class Psychic class ScriptFactoryManager < FactoryManager def factories_for(script) capable_factories = active_factories.select do | factory | factory.priority_for_script(script) end capable_factories.sort_by do |factory| factory.priority_for_script(script) end end def priority_for(script) active_factories.map do | factory | priority = factory.priority_for_script(script) || 0 # FIXME: Need to change default log level to info before adding debug logging # logger.debug("#{factory.class} priority for #{script.source_file}: #{priority}") priority end.max end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omnitest-psychic-0.0.9 | lib/omnitest/psychic/script_factory_manager.rb |