Class: Omnitest::Command::ProjectAction
- Includes:
- RunAction
- Defined in:
- lib/omnitest/command/project_action.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 |
# File 'lib/omnitest/command/project_action.rb', line 9 def call "Starting Omnitest (v#{Omnitest::VERSION})" elapsed = Benchmark.measure do setup project_regex = args.shift if %w(task workflow).include? action # a bit hacky... argument = project_regex project_regex = args.shift args.unshift argument end projects = select_projects(project_regex, ) run_action(projects, action, [:concurrency], *args) end "Omnitest is finished. #{Core::Util.duration(elapsed.real)}" end |