forked from pascalopitz/nodestalker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
46 lines (28 loc) · 847 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
A Beanstalk client utilising node.js.
Depends on the yaml package from the kiwi package manager.
USAGE
=====
Simple usage example:
var sys = require('sys');
var bs = require('../lib/beanstalk_client');
var client = bs.Client();
client.use('default').onSuccess(function(data) {
sys.puts(sys.inspect(data));
client.put('my job').onSuccess(function(data) {
sys.puts(sys.inspect(data));
client.disconnect();
});
});
BEANSPECTOR
===========
Also included is the cli demo app 'beanspector', that just outputs
info about tubes and gives one the possibility to empty and put jobs into them.
A simple
node beanspector.js -h
will give you the help output.
TESTING
=======
Also there are some tests now.
Please make sure beanstalkd is running on the default settings.
To run all tests:
find tests/ | grep .js | xargs -n1 node