Sha256: a544e10a70c39b7858e0dd6e78478dfbb05a1d3057544d23667cf7ecb97cf5f7

Contents?: true

Size: 736 Bytes

Versions: 2

Compression:

Stored size: 736 Bytes

Contents

require 'benchmark'

module Omnitest
  module Command
    class Task < Omnitest::Command::Base
      include RunAction

      # Invoke the command.
      def call
        banner "Starting Omnitest (v#{Omnitest::VERSION})"
        elapsed = Benchmark.measure do
          setup
          task = args.shift
          project_regex = args.shift
          projects = Omnitest.filter_projects(project_regex)
          if options[:exec]
            run_action(projects, :execute, options[:concurrency])
          else
            run_action(projects, task, options[:concurrency])
          end
        end
        #  Need task summary...
        banner "Omnitest is finished. #{Core::Util.duration(elapsed.real)}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnitest-0.2.2 lib/omnitest/command/task.rb
omnitest-0.2.1 lib/omnitest/command/task.rb