Sha256: 125495c0fe496acdab09ccc558e348c5dd126c3d9da1e9ccd43cb08e3a4695bc

Contents?: true

Size: 594 Bytes

Versions: 35

Compression:

Stored size: 594 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/knapsack_pro'

runner = ARGV[0]
arguments = ARGV[1]

MAP = {
  'rspec' => KnapsackPro::Runners::RSpecRunner,
  'queue:rspec' => KnapsackPro::Runners::Queue::RSpecRunner,
  'cucumber' => KnapsackPro::Runners::CucumberRunner,
  'minitest' => KnapsackPro::Runners::MinitestRunner,
  'spinach' => KnapsackPro::Runners::SpinachRunner,
}

runner_class = MAP[runner]

if runner_class
  runner_class.run(arguments)
else
  raise 'Undefined runner. Please provide runner name and optional arguments, for instance: knapsack_pro rspec "--color --profile"'
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
knapsack_pro-0.50.1 bin/knapsack_pro
knapsack_pro-0.50.0 bin/knapsack_pro
knapsack_pro-0.49.0 bin/knapsack_pro
knapsack_pro-0.48.0 bin/knapsack_pro
knapsack_pro-0.47.0 bin/knapsack_pro
knapsack_pro-0.46.0 bin/knapsack_pro
knapsack_pro-0.45.0 bin/knapsack_pro
knapsack_pro-0.44.0 bin/knapsack_pro
knapsack_pro-0.43.0 bin/knapsack_pro
knapsack_pro-0.42.0 bin/knapsack_pro
knapsack_pro-0.41.0 bin/knapsack_pro
knapsack_pro-0.40.0 bin/knapsack_pro
knapsack_pro-0.39.0 bin/knapsack_pro
knapsack_pro-0.38.0 bin/knapsack_pro
knapsack_pro-0.37.0 bin/knapsack_pro
knapsack_pro-0.36.0 bin/knapsack_pro
knapsack_pro-0.35.0 bin/knapsack_pro
knapsack_pro-0.34.0 bin/knapsack_pro
knapsack_pro-0.33.0 bin/knapsack_pro
knapsack_pro-0.32.0 bin/knapsack_pro