|
Revision 326, 0.5 kB
(checked in by gethema..@gmail.com, 6 months ago)
|
check in new backgroundrb code
|
| Line | |
|---|
| 1 |
Description: |
|---|
| 2 |
The worker generator creates stubs for a new BackgrounDRb worker. |
|---|
| 3 |
|
|---|
| 4 |
The generator takes a worker name as its argument. The worker name may be |
|---|
| 5 |
given in CamelCase or under_score and should not be suffixed with 'Worker'. |
|---|
| 6 |
|
|---|
| 7 |
The generator creates a worker class in lib/workers and a test suite in |
|---|
| 8 |
test/unit. |
|---|
| 9 |
|
|---|
| 10 |
Example: |
|---|
| 11 |
./script/generate worker Tail |
|---|
| 12 |
|
|---|
| 13 |
This will create an Tail worker: |
|---|
| 14 |
Model: lib/workers/tail_worker.rb |
|---|
| 15 |
Test: test/unit/tail_worker_test.rb |
|---|
| 16 |
|
|---|