zabbix_vhost 0.5.0 → 0.6.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: 1d85eeba1bc8f34feb1a01c8a24f5532ad3254b6
4
- data.tar.gz: 9c96c079ba66058a9aa375b6b4e34f63d71a57ed
3
+ metadata.gz: '0283375e8a145accff8dcd461653f9db7543b8d0'
4
+ data.tar.gz: 6866a7046dc830e8eea1de8bf30ca9811a21e4c7
5
5
  SHA512:
6
- metadata.gz: 705a039e935225a8d5f469c04522bff0f799cf5995edc96ddf4bf5a0ea0f1327835edae53b9534f54343f598dd0ed0fd9259445cdfd91e00a3f5ef8fc3ef3bc6
7
- data.tar.gz: 650e030759bee8f638cce26912888382845f92870ab717bd848f6864af47f16ddd8ff925f98bdf565d862fb8753ede3a493e6b4a8cc06af5c66a1db09ddeccf0
6
+ metadata.gz: 92ba9dbc887a713f185c47099524022a6245743e6c2e57fe77925f0248d730ba5d5d921afe6c0430fdcb708da05f2cc17e25c9e25676149d3afbe1b63b88df76
7
+ data.tar.gz: b5e1ea7af69edd3f93591a72726e368d64d5d00864c55cf7daa37743960a3e54b2a1469dd4fbc1ea1293bfa1730972433608cae3fec87f632af2c888c0ce9734
@@ -19,10 +19,10 @@ module ZabbixVhost
19
19
  @config_content = File.read(@file_path)
20
20
  ## Controlliamo se siamo in apache
21
21
  if_apache do
22
- @server_name = @config_content.match(/^\s+ServerName (?<server_name>.*)/)[:server_name]
22
+ @server_name = @config_content.match(/^\s?ServerName (?<server_name>.*)/)[:server_name]
23
23
 
24
- if @config_content.match(/^\s+ServerAlias/)
25
- @server_alias = @config_content.match(/^\s+ServerAlias (?<names>.*)/)[:names].split(" ")
24
+ if @config_content.match(/^\s?ServerAlias/)
25
+ @server_alias = @config_content.match(/^\s?ServerAlias (?<names>.*)/)[:names].split(" ")
26
26
  end
27
27
 
28
28
  @ssl_active = !@config_content.match(/443/).nil?
@@ -78,7 +78,7 @@ module ZabbixVhost
78
78
  private
79
79
 
80
80
  def if_apache
81
- if @config_content.match(/^\s+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.5.0"
2
+ VERSION = "0.6.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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti