Sha256: 76f0abb3a165a03eb1e57c0748270664ec4b2591188998cec5d9cfba45f3959c

Contents?: true

Size: 799 Bytes

Versions: 5

Compression:

Stored size: 799 Bytes

Contents

# syntactic sugar, and separate ivar.  daemons aren't interactive
When /^I run "([^"]*)" in the background$/ do |cmd|
  run_background(unescape(cmd))
end

Then /^the (output|logfiles) should contain the following lines \(with interpolated \$PID\):$/ do |output_logfiles, partial_output|
  interpolate_background_pid(partial_output).split("\n").each do |line|
    output_or_log(output_logfiles).should include(line)
  end
end

When /^I send "([^"]*)" the "([^"]*)" signal$/ do |cmd, signal|
  send_signal(cmd, signal)
end

Then /^the "([^"]*)" process should finish$/ do |cmd|
  # doesn't actually stop... just polls for exit
  processes[cmd].stop
end

Before("@slow_exit") do
  @aruba_timeout_seconds = 10
end

After do
  kill_all_processes!
  # now kill the daemon!
  `pkill -9 -f resque-pool`
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
vitobotta-resque-pool-0.3.2.dev features/step_definitions/daemon_steps.rb
vitobotta-resque-pool-0.3.1.dev features/step_definitions/daemon_steps.rb
vitobotta-resque-pool-0.3.0.dev features/step_definitions/daemon_steps.rb
resque-pool-0.3.0.beta.1 features/step_definitions/daemon_steps.rb
resque-pool-0.2.0 features/step_definitions/daemon_steps.rb