Class: Crosstest::Psychic::Factories::RubyFactory

Inherits:
ScriptFactory show all
Defined in:
lib/crosstest/psychic/factories/ruby_factories.rb

Constant Summary

Constants inherited from ScriptFactory

ScriptFactory::TASK_PRIORITY

Constants inherited from Crosstest::Psychic::FactoryManager

Crosstest::Psychic::FactoryManager::BUILT_IN_DIR

Instance Attribute Summary

Attributes inherited from ScriptFactory

#priority, #psychic, #run_patterns

Attributes inherited from Crosstest::Psychic::FactoryManager

#factories

Instance Method Summary collapse

Methods inherited from ScriptFactory

#active?, #cwd, #initialize, #known_script?, #known_scripts, priority_for_script, #priority_for_script, register_script_factory, run_patterns, runs

Methods inherited from Crosstest::Psychic::FactoryManager

#active?, #active_factories, autoload_factories!, clear, factory_classes, #initialize, register_factory

Constructor Details

This class inherits a constructor from Crosstest::Psychic::ScriptFactory

Instance Method Details

#command_for_script(_script) ⇒ Object


27
28
29
30
# File 'lib/crosstest/psychic/factories/ruby_factories.rb', line 27

def command_for_script(_script)
  cmd = bundler_active? ? 'bundle exec ' : ''
  cmd << 'ruby {{script_file}}'
end