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 +4 -4
- data/lib/zabbix_vhost/config.rb +4 -4
- data/lib/zabbix_vhost/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0283375e8a145accff8dcd461653f9db7543b8d0'
|
4
|
+
data.tar.gz: 6866a7046dc830e8eea1de8bf30ca9811a21e4c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92ba9dbc887a713f185c47099524022a6245743e6c2e57fe77925f0248d730ba5d5d921afe6c0430fdcb708da05f2cc17e25c9e25676149d3afbe1b63b88df76
|
7
|
+
data.tar.gz: b5e1ea7af69edd3f93591a72726e368d64d5d00864c55cf7daa37743960a3e54b2a1469dd4fbc1ea1293bfa1730972433608cae3fec87f632af2c888c0ce9734
|
data/lib/zabbix_vhost/config.rb
CHANGED
@@ -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
|
22
|
+
@server_name = @config_content.match(/^\s?ServerName (?<server_name>.*)/)[:server_name]
|
23
23
|
|
24
|
-
if @config_content.match(/^\s
|
25
|
-
@server_alias = @config_content.match(/^\s
|
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
|
81
|
+
if @config_content.match(/^\s?ServerName/)
|
82
82
|
yield
|
83
83
|
end
|
84
84
|
end
|
data/lib/zabbix_vhost/version.rb
CHANGED