Class: Omnitest::Command::Task
- Includes:
- RunAction
- Defined in:
- lib/omnitest/command/task.rb
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods included from RunAction
Methods inherited from Base
Constructor Details
This class inherits a constructor from Omnitest::Command::Base
Instance Method Details
#call ⇒ Object
Invoke the command.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/omnitest/command/task.rb', line 9 def call "Starting Omnitest (v#{Omnitest::VERSION})" elapsed = Benchmark.measure do setup task = args.shift project_regex = args.shift projects = Omnitest.filter_projects(project_regex) if [:exec] run_action(projects, :execute, [:concurrency]) else run_action(projects, task, [:concurrency]) end end # Need task summary... "Omnitest is finished. #{Core::Util.duration(elapsed.real)}" end |