Sha256: a7d6e31e8d5be8e74a5f1cd93dbb2eb3983664d646ccf196d6751781e0195ebf

Contents?: true

Size: 481 Bytes

Versions: 13

Compression:

Stored size: 481 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/knapsack_pro'

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

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

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

13 entries across 13 versions & 1 rubygems

Version Path
knapsack_pro-0.7.2 bin/knapsack_pro
knapsack_pro-0.7.1 bin/knapsack_pro
knapsack_pro-0.7.0 bin/knapsack_pro
knapsack_pro-0.6.1 bin/knapsack_pro
knapsack_pro-0.6.0 bin/knapsack_pro
knapsack_pro-0.5.0 bin/knapsack_pro
knapsack_pro-0.4.0 bin/knapsack_pro
knapsack_pro-0.3.0 bin/knapsack_pro
knapsack_pro-0.2.1 bin/knapsack_pro
knapsack_pro-0.2.0 bin/knapsack_pro
knapsack_pro-0.1.2 bin/knapsack_pro
knapsack_pro-0.1.1 bin/knapsack_pro
knapsack_pro-0.1.0 bin/knapsack_pro