acception-subscriber 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -0
- data/lib/acception/subscriber/configuration.rb +3 -4
- data/lib/acception/subscriber/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bf39717849c7f81215da7b57730edcace4f9a89
|
4
|
+
data.tar.gz: e74aa9d4394dc5bb3dda7360527ef8c5518b381c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809eface5af2e73ed61937fac15f1bd49340a2523d639751beb1be6a87bc04f2d189772dea1c0e2ec94691cdc7ad64a3ace67d9de45daf73807273546b954ed7
|
7
|
+
data.tar.gz: 00f7d4cb7e9e19239350022c9bbe2135c340847d4d0ee953a42979d9a7c81923a313523593cec5cf0681d2d01e4976f5cec558ac5fcf57c14f5f44d7f7d7bdb4
|
data/README.md
CHANGED
@@ -19,3 +19,40 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
+
The acception-sub service is init.d compliant with the start, stop and restart commands.
|
23
|
+
|
24
|
+
### Start the acception-sub service in daemon mode.
|
25
|
+
|
26
|
+
$ acception-sub start
|
27
|
+
|
28
|
+
### Start the acception-sub service in interactive mode with a DEBUG log level.
|
29
|
+
|
30
|
+
$ acception-sub start -i -o debug
|
31
|
+
|
32
|
+
### Start the acception-sub service in a Rails environment other than production.
|
33
|
+
|
34
|
+
$ RAILS_ENV=development acception-sub start
|
35
|
+
|
36
|
+
|
37
|
+
### Configuration File
|
38
|
+
|
39
|
+
A configuration file that defaults to /etc/ncite/acception-sub.conf can be used to override the
|
40
|
+
default configuration. The configuration file is a JSON object literal.
|
41
|
+
|
42
|
+
{
|
43
|
+
"acception_url": "some/url",
|
44
|
+
"acception_auth_token": "some-auth-token",
|
45
|
+
"host_uri": "amqp://guest:guest@127.0.0.1:5672",
|
46
|
+
"queue": "some-queue-name'
|
47
|
+
}
|
48
|
+
|
49
|
+
You can specify a different configuration file to use with -c or --config.
|
50
|
+
|
51
|
+
$ acception-sub start -c /some/path/to/config
|
52
|
+
|
53
|
+
|
54
|
+
### Default Files
|
55
|
+
|
56
|
+
- /etc/ncite/acception-sub.conf
|
57
|
+
- /var/log/ncite/acception-sub.log
|
58
|
+
- /var/run/ncite/acception-sub.conf
|
@@ -27,11 +27,11 @@ module Acception
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def acception_auth_token
|
30
|
-
@acception_auth_token
|
30
|
+
@acception_auth_token
|
31
31
|
end
|
32
32
|
|
33
33
|
def acception_url
|
34
|
-
@acception_url
|
34
|
+
@acception_url
|
35
35
|
end
|
36
36
|
|
37
37
|
def host_uri
|
@@ -39,8 +39,7 @@ module Acception
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def queue
|
42
|
-
|
43
|
-
@queue || "error"
|
42
|
+
@queue || "error-repo"
|
44
43
|
end
|
45
44
|
|
46
45
|
end
|