haredo 2.0.0 → 2.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 +4 -4
- data/src/lib/haredo/config.rb +2 -2
- data/src/lib/haredo/service/daemon.rb +2 -2
- data/src/lib/haredo/version.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4be72a4fed944052401d3116d61c98186d6c86d
|
4
|
+
data.tar.gz: 1ff46bfcd3585dc3a7f5885cdb3487bb3759c5b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ba6893748b449ddd53fe2cebf56c7f84a9279cbb5ddd77a1372758b1044597544414a8fc85792e78c3376bb9c7965f608d53e0e07b9c23b90f8c192c687e5fc
|
7
|
+
data.tar.gz: cf01b8cf6c2be4cae3cfd45bff282bed1977c698c46a73c739c374d5731431963a85e3980de42b9c8a71bcc162a1769d9b604b1fd00e97d6187f85b8e1d7dea1
|
data/README.md
CHANGED
@@ -508,7 +508,7 @@ daemon:
|
|
508
508
|
auto_delete: true
|
509
509
|
key: 'b8d96b66-8cae-4e16-b5ec-d607483b061e'
|
510
510
|
modules:
|
511
|
-
-
|
511
|
+
- vaquero/service/config
|
512
512
|
services:
|
513
513
|
haredo:
|
514
514
|
path_prefix: haredo/plugins
|
@@ -521,7 +521,7 @@ daemon:
|
|
521
521
|
log:
|
522
522
|
db:
|
523
523
|
host: localhost
|
524
|
-
db:
|
524
|
+
db: vaquero
|
525
525
|
user: root
|
526
526
|
```
|
527
527
|
|
@@ -547,7 +547,7 @@ syslog.
|
|
547
547
|
Modules are additional modules you want to daemon to load. This is done before
|
548
548
|
services are processed. This is for when you want to modify the daemon's code in
|
549
549
|
some way (adding or overriding methods), or also including some custom
|
550
|
-
initialization. For example, say I have a module <tt>
|
550
|
+
initialization. For example, say I have a module <tt>vaquero/service/config</tt>
|
551
551
|
that adds database connection functionality to <tt>HareDo::Service::Config</tt>
|
552
552
|
mixin as follows:
|
553
553
|
|
@@ -588,7 +588,7 @@ module Config
|
|
588
588
|
end # class Context
|
589
589
|
|
590
590
|
end # module HareDo
|
591
|
-
end # module
|
591
|
+
end # module Vaquero
|
592
592
|
```
|
593
593
|
|
594
594
|
This uses my custom database abstraction extensions which I want to add to
|
data/src/lib/haredo/config.rb
CHANGED
@@ -10,8 +10,8 @@ end
|
|
10
10
|
module HareDo
|
11
11
|
module Config
|
12
12
|
|
13
|
-
def loadConfig()
|
14
|
-
@config_file = '/etc/haredo/haredo.conf'
|
13
|
+
def loadConfig(file=nil)
|
14
|
+
@config_file = file || '/etc/haredo/haredo.conf'
|
15
15
|
@config = []
|
16
16
|
@config = YAML.load_file(@config_file)
|
17
17
|
@pid_file = '/var/run/haredo.pid'
|
@@ -26,7 +26,7 @@ class Daemon < HareDo::Peer
|
|
26
26
|
|
27
27
|
include HareDo::Service::Config
|
28
28
|
|
29
|
-
def initialize(name='haredo')
|
29
|
+
def initialize(name='haredo', config_file=nil)
|
30
30
|
super(name)
|
31
31
|
|
32
32
|
@name = name
|
@@ -34,7 +34,7 @@ class Daemon < HareDo::Peer
|
|
34
34
|
@queue_properties = {}
|
35
35
|
@loaded_modules = []
|
36
36
|
|
37
|
-
loadConfig()
|
37
|
+
loadConfig(config_file)
|
38
38
|
|
39
39
|
account = @config['system']['broker']
|
40
40
|
|
data/src/lib/haredo/version.rb
CHANGED
@@ -4,8 +4,8 @@ module HareDo
|
|
4
4
|
VERSION_MAJ = '2'
|
5
5
|
VERSION_MIN = '0'
|
6
6
|
VERSION_CL = '-beta'
|
7
|
-
VERSION_PL = '
|
8
|
-
VERSION = '2.0.
|
9
|
-
RELEASE_DATE = '
|
7
|
+
VERSION_PL = '1'
|
8
|
+
VERSION = '2.0.1-beta-1'
|
9
|
+
RELEASE_DATE = 'Thu, 03 Oct 2013 14:08:05 -0500'
|
10
10
|
|
11
11
|
end # module HareDo
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haredo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Owens
|
8
8
|
autorequire:
|
9
9
|
bindir: src/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|