ymlex 1.1.9.3 → 1.1.9.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ymlex/argusyml.rb +3 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e76e14261846b0ad842690d666b7ad2960d2405
4
- data.tar.gz: 522e53904a74b2a374b7bdcdeeeb01208a19f9f9
3
+ metadata.gz: 42e97249cc3625e5c6886aa1a6a11005cc56bcf5
4
+ data.tar.gz: 6437909558f048e8b66300802ae9dbeec93a451a
5
5
  SHA512:
6
- metadata.gz: 61e48d4ed08f4e54e7ae32996f7d2d29479a2d1210b67555fb54c40f8a80af64bd28c77ca2e8fa1cb82ab87fbc7f8a5471ad2b7fb7ce2945263dbac10ed024d3
7
- data.tar.gz: 86afb2794ac359a2bc09640291a36b00453d6ea905db53e7f94327d5e4d68dbf627426e13e70d56846b2d504a5ab3e0272866c371def0690577aaa6c51fe1ad8
6
+ metadata.gz: f12336c7639d0d36be505c8d8f6f5cc550c9a636b1512155b4e36235075ffdc0620401b7de62ce1ea83941a7c84a98e22cea7f49337c8ad19b65d016fdded983
7
+ data.tar.gz: 6a889858bf0449a74b16a1e088e4b0168ce929b46a9956278cffa841f08e2fa12f25579988bcb9df31989e96966353ace79427dafef0b1eca8975c38abe093f1
@@ -21,11 +21,6 @@ class Alert
21
21
  oncall = level["oncall"]
22
22
  manager = level["manager"]
23
23
 
24
- # # change g_ecomop_maop_all to #z_ecomop_maop_oncall_bak
25
- # if @contacts["op"] != nil
26
- # @contacts["op"].gsub!(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall_bak')
27
- # end
28
- #
29
24
  mail = ""
30
25
  sms = ""
31
26
  hi = ""
@@ -70,7 +65,7 @@ class Alert
70
65
  end
71
66
 
72
67
  web = "g_ecomop_maop_all;g_ecomop_maop_manager;" if sms.include? "g_ecomop_maop_all" or sms.include? "#z_ecomop_maop_oncall"
73
- sms.gsub!(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall;#z_ecomop_maop_oncall_bak')
68
+ sms.gsub!(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall')
74
69
  mail.gsub!(/g_ecomop_maop_all/,'ma-op')
75
70
  alt = {
76
71
  "max_alert_times" => level["max_alert_times"] || "1",
@@ -89,7 +84,8 @@ class Alert
89
84
  }
90
85
  if lvl =~ /fatal/ and manager != ""
91
86
  alt["level1_upgrade_interval"] = "900"
92
- alt["level1_upgrade_sms"] = "#{manager};#{@contacts['op']}".gsub(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall;#z_ecomop_maop_oncall_bak')
87
+ #alt["level1_upgrade_sms"] = "#{manager};#{@contacts['op']}".gsub(/g_ecomop_maop_all/,'#z_ecomop_maop_oncall')
88
+ alt["level1_upgrade_sms"] = "#{manager};"
93
89
  end
94
90
  alt
95
91
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ymlex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9.3
4
+ version: 1.1.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wen Li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'extend ymal: support inherit and valueize'
14
14
  email: wenli@baidu.com