murakumo 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/etc/murakumo.server CHANGED
@@ -99,8 +99,8 @@ host: $ip_addr, $hostname, 60
99
99
  # timeout: 5
100
100
  # healthy: 2
101
101
  # unhealthy: 2
102
- # #on_activate: /foo/bar/zoo.sh # args: address name status
103
- # #on_inactivate: /foo/bar/zoo.sh # args: address name status
102
+ # #on-activate: /foo/bar/zoo.sh # args: address name status
103
+ # #on-inactivate: /foo/bar/zoo.sh # args: address name status
104
104
  # script: |
105
105
  # tcp_check 80
106
106
  # bar:
@@ -39,8 +39,8 @@ health-check:
39
39
  timeout: 5
40
40
  healthy: 2
41
41
  unhealthy: 2
42
- #on_activate: /foo/bar/zoo.sh # args: address name status
43
- #on_inactivate: /foo/bar/zoo.sh # args: address name status
42
+ #on-activate: /foo/bar/zoo.sh # args: address name status
43
+ #on-inactivate: /foo/bar/zoo.sh # args: address name status
44
44
  script: |
45
45
  tcp_check 80
46
46
  bar:
@@ -195,7 +195,7 @@ def murakumo_parse_args
195
195
  parse_error('configuration of a health check is not right', "#{name}/script")
196
196
  end
197
197
 
198
- %w(on_activate on_inactivate).each do |key|
198
+ %w(on-activate on-inactivate).each do |key|
199
199
  next unless conf[key]
200
200
  path = conf[key] = conf[key].strip
201
201
 
@@ -1,5 +1,5 @@
1
1
  module Murakumo
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
 
4
4
  # Priority
5
5
  MASTER = 1
@@ -42,8 +42,8 @@ module Murakumo
42
42
  end
43
43
 
44
44
  # イベントハンドラの設定
45
- @on_activate = options['on_activate']
46
- @on_inactivate = options['on_inactivate']
45
+ @on_activate = options['on-activate']
46
+ @on_inactivate = options['on-inactivate']
47
47
  end
48
48
 
49
49
  def good
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: murakumo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel