Sha256: a8813229f732dfdd17ed5f96ff11a3403346dedb2b97efe32653ef9b0d7ef4bf
Contents?: true
Size: 742 Bytes
Versions: 3
Compression:
Stored size: 742 Bytes
Contents
require 'benchmark' module Polytrix module Command class Action < Polytrix::Command::Base include RunAction # Invoke the command. def call banner "Starting Polytrix (v#{Polytrix::VERSION})" elapsed = Benchmark.measure do setup tests = parse_subcommand(args.first) implementors = tests.map(&:implementor).uniq # Logging.mdc['command'] = action if [:clone, :bootstrap].include? action # actions on implementors run_action(action, implementors) else # actions on tests run_action(action, tests) end end banner "Polytrix is finished. #{Util.duration(elapsed.real)}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.1.2 | lib/polytrix/command/action.rb |
polytrix-0.1.1 | lib/polytrix/command/action.rb |
polytrix-0.1.0 | lib/polytrix/command/action.rb |