Sha256: 0e1060e3929c093148083653ce12834ecd61ff60a630027814665826a6eecebb
Contents?: true
Size: 985 Bytes
Versions: 1
Compression:
Stored size: 985 Bytes
Contents
Feature: Worker Scenario: Starting and stopping Given a file named "worker" with mode "744" and with: """ #!/usr/bin/env ruby $LOAD_PATH << File.expand_path("../../../lib", __FILE__) require "daemonic" class MyWorker def produce(queue) sleep 0.1 queue << "tick" end def consume(message) puts message sleep 0.1 end end Daemonic.run { MyWorker.new } """ When I run `./worker start --daemonize --pid tmp/worker.pid --log test.log` Then the exit status should be 0 When I run `./worker status --pid tmp/worker.pid` Then the exit status should be 0 When I run `./worker restart --pid tmp/worker.pid --log test.log` Then the exit status should be 0 When I run `./worker stop --pid tmp/worker.pid` Then the exit status should be 0 When I run `./worker status --pid tmp/worker.pid` Then the exit status should be 2
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
daemonic-0.1.3 | features/worker.feature |