Class: Polytrix::Command::Test

Inherits:
Base
  • Object
show all
Includes:
RunAction
Defined in:
lib/polytrix/command/test.rb

Overview

Command to test one or more instances.

Constant Summary

Constants inherited from Base

Base::SUPPORTED_EXTENSIONS

Instance Method Summary collapse

Methods included from RunAction

#run_action

Methods inherited from Base

#initialize

Methods included from Polytrix::Core::FileSystemHelper

#find_file, #recursive_parent_search

Methods included from StringHelpers

included

Methods included from StringHelpers::ClassMethods

#slugify

Methods included from DefaultLogger

included

Methods included from DefaultLogger::ClassMethods

#logger

Constructor Details

This class inherits a constructor from Polytrix::Command::Base

Instance Method Details

#callObject

Invoke the command.



12
13
14
15
16
17
18
19
20
21
# File 'lib/polytrix/command/test.rb', line 12

def call
  banner "Starting Polytrix (v#{Polytrix::VERSION})"
  elapsed = Benchmark.measure do
    setup
    results = parse_subcommand(args.join('|'))

    run_action(:test, results)
  end
  banner "Polytrix is finished. #{Util.duration(elapsed.real)}"
end