Sha256: 14e8ce95163399ceb0aa5e3bf9ffd65910da551d0cf2db96055f324e4673e9ff
Contents?: true
Size: 653 Bytes
Versions: 5
Compression:
Stored size: 653 Bytes
Contents
require 'knapsack_pro' namespace :knapsack_pro do namespace :queue do task :minitest, [:minitest_args] do |_, args| Kernel.system("RAILS_ENV=test RACK_ENV=test #{$PROGRAM_NAME} 'knapsack_pro:queue:minitest_go[#{args[:minitest_args]}]'") exitstatus = $?.exitstatus if exitstatus.nil? puts 'Something went wrong. Most likely, the process has been killed. Knapsack Pro has been terminated.' Kernel.exit(1) else Kernel.exit(exitstatus) end end task :minitest_go, [:minitest_args] do |_, args| KnapsackPro::Runners::Queue::MinitestRunner.run(args[:minitest_args]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems