zabbix_vhost 0.4.0 → 0.5.0

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: 84248ab1948745a43c470fa5e103b6a64e2b09fc
4
- data.tar.gz: 628bb8be60d61daf818421bb2c33df2f54469bcb
3
+ metadata.gz: 1d85eeba1bc8f34feb1a01c8a24f5532ad3254b6
4
+ data.tar.gz: 9c96c079ba66058a9aa375b6b4e34f63d71a57ed
5
5
  SHA512:
6
- metadata.gz: ba7b7de09b325ca3122def188a206607b56f8982b4f9c0069fb52414b7aaf72b910e48232507255fac4b5f2146ee41e9497601d8644f27a2a06800d0b71a19aa
7
- data.tar.gz: 2939cd28ac51329c2589032a0668d5c883328299304792c0f1996143cdc7c3df8393da44c8e963e6f29679440496f6523fa9a947ff92baad288a9a2933801bdd
6
+ metadata.gz: 705a039e935225a8d5f469c04522bff0f799cf5995edc96ddf4bf5a0ea0f1327835edae53b9534f54343f598dd0ed0fd9259445cdfd91e00a3f5ef8fc3ef3bc6
7
+ data.tar.gz: 650e030759bee8f638cce26912888382845f92870ab717bd848f6864af47f16ddd8ff925f98bdf565d862fb8753ede3a493e6b4a8cc06af5c66a1db09ddeccf0
@@ -35,5 +35,11 @@ module ZabbixVhost
35
35
  print c.send(function)
36
36
  end
37
37
 
38
+ desc "version", "Get version"
39
+
40
+ def version
41
+ puts ZabbixVhost::VERSION
42
+ end
43
+
38
44
  end
39
45
  end
@@ -78,7 +78,7 @@ module ZabbixVhost
78
78
  private
79
79
 
80
80
  def if_apache
81
- if @config_content.match(/ServerName/)
81
+ if @config_content.match(/^\s+ServerName/)
82
82
  yield
83
83
  end
84
84
  end
@@ -1,3 +1,3 @@
1
1
  module ZabbixVhost
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix_vhost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti