Sha256: c9504de5ce09e076d0b94f57ee6f08ab439f51bd5629ec14e11fc8b0b0c6444f

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

require 'polytrix/command'

require 'benchmark'

module Polytrix
  module Command
    # Command to test one or more instances.
    class Test < Polytrix::Command::Base
      include RunAction

      # Invoke the command.
      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
polytrix-0.1.4 lib/polytrix/command/test.rb
polytrix-0.1.3 lib/polytrix/command/test.rb
polytrix-0.1.2 lib/polytrix/command/test.rb
polytrix-0.1.1 lib/polytrix/command/test.rb
polytrix-0.1.0 lib/polytrix/command/test.rb