Class: Polytrix::Command::Action
- Includes:
- RunAction
- Defined in:
- lib/polytrix/command/action.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods included from RunAction
Methods inherited from Base
Methods included from Polytrix::Core::FileSystemHelper
#find_file, #recursive_parent_search
Methods included from StringHelpers
Methods included from StringHelpers::ClassMethods
Methods included from DefaultLogger
Methods included from DefaultLogger::ClassMethods
Constructor Details
This class inherits a constructor from Polytrix::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/polytrix/command/action.rb', line 9 def call "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 "Polytrix is finished. #{Util.duration(elapsed.real)}" end |