Sha256: cf4bc5c33cdcd85856eaa94e2dddcff77840a5f61967e67235d6fa67f3d648cb

Contents?: true

Size: 361 Bytes

Versions: 4

Compression:

Stored size: 361 Bytes

Contents

require 'bluth'
require 'bluth/test_helpers'


## Can create a Worker
@worker = Bluth::Worker.new 'host', 'user', 'wid'
@worker.index
#=> "host:user:wid"

## Worker has a redis key
@worker.rediskey
#=> 'bluth:worker:host:user:wid:object'

## Worker counts success
@worker.success!
@worker.success!
@worker.success.to_i
#=> 2


if @worker
  @worker.destroy!
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bluth-0.7.2 try/16_worker_try.rb
bluth-0.7.0 try/16_worker_try.rb
bluth-0.6.8 try/16_worker_try.rb
bluth-0.6.7 try/16_worker_try.rb