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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff09def9c61a951c40c71dd2ce8873f6883e84e4
4
- data.tar.gz: 9e2a10e846685afb1b5b238117aaecf15f9b4116
3
+ metadata.gz: b4be72a4fed944052401d3116d61c98186d6c86d
4
+ data.tar.gz: 1ff46bfcd3585dc3a7f5885cdb3487bb3759c5b2
5
5
  SHA512:
6
- metadata.gz: 4bea5b65ac4a075d7a317186163e222b7eeab387f163d6c56c3b363d90f29047fdf46c87a11f10758b2ed766c4b3425c6998c16bf538ba355d890d98fab04107
7
- data.tar.gz: 13fa22657bfe7fa540c30a5570a90cfe185f17fbf6580ab94532d85b1d873853d3bdc94f64682302f5cd025e5fbf1a65bc3ca55fe45d28be4d1d075f6ef94c8a
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
- - sonar/service/config
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: sonar
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>sonar/service/config</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 Sonar
591
+ end # module Vaquero
592
592
  ```
593
593
 
594
594
  This uses my custom database abstraction extensions which I want to add to
@@ -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
 
@@ -4,8 +4,8 @@ module HareDo
4
4
  VERSION_MAJ = '2'
5
5
  VERSION_MIN = '0'
6
6
  VERSION_CL = '-beta'
7
- VERSION_PL = '0'
8
- VERSION = '2.0.0-beta-1'
9
- RELEASE_DATE = 'Tue, 01 Oct 2013 15:16:38 -0500'
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.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-01 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny