Sha256: cab54a6bed4548fc4c7ba7d09f98b888f2ab82fd8cd6595d6128a4b7d9fdc412
Contents?: true
Size: 464 Bytes
Versions: 14
Compression:
Stored size: 464 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/knapsack' runner = ARGV[0] arguments = ARGV[1] MAP = { 'rspec' => Knapsack::Runners::RSpecRunner, 'cucumber' => Knapsack::Runners::CucumberRunner, 'minitest' => Knapsack::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 rspec "--color --profile"' end
Version data entries
14 entries across 14 versions & 1 rubygems