Class: Polytrix::Command::Test
- Includes:
- RunAction
- Defined in:
- lib/polytrix/command/test.rb
Overview
Command to test one or more instances.
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods included from RunAction
Methods inherited from Base
Methods included from Util::FileSystem
Methods included from Util::String
Methods included from Util::String::ClassMethods
#ansi2html, #escape_html, #highlight, #slugify
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.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/polytrix/command/test.rb', line 12 def call "Starting Polytrix (v#{Polytrix::VERSION})" elapsed = Benchmark.measure do setup results = parse_subcommand(args.join('|')) run_action(:test, results) end "Polytrix is finished. #{Util.duration(elapsed.real)}" end |