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