Sha256: 17369c18160734bf4aec17de3a6f68b92e4eb0e5f6cacc5a2bceb2d269e2cf6d

Contents?: true

Size: 684 Bytes

Versions: 10

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

require 'knapsack_pro'

namespace :knapsack_pro do
  namespace :queue do
    task :cucumber, [:cucumber_args] do |_, args|
      Kernel.system("RAILS_ENV=test RACK_ENV=test #{$PROGRAM_NAME} 'knapsack_pro:queue:cucumber_go[#{args[:cucumber_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 :cucumber_go, [:cucumber_args] do |_, args|
      KnapsackPro::Runners::Queue::CucumberRunner.run(args[:cucumber_args])
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
knapsack_pro-7.1.0 lib/tasks/queue/cucumber.rake
knapsack_pro-7.0.1 lib/tasks/queue/cucumber.rake
knapsack_pro-7.0.0 lib/tasks/queue/cucumber.rake
knapsack_pro-6.0.4 lib/tasks/queue/cucumber.rake
knapsack_pro-6.0.3 lib/tasks/queue/cucumber.rake
knapsack_pro-6.0.2 lib/tasks/queue/cucumber.rake
knapsack_pro-6.0.1 lib/tasks/queue/cucumber.rake
knapsack_pro-6.0.0 lib/tasks/queue/cucumber.rake
knapsack_pro-5.7.0 lib/tasks/queue/cucumber.rake
knapsack_pro-5.6.0 lib/tasks/queue/cucumber.rake