gestio2masq 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/exe/gestio2masq +2 -2
- data/gestio2masq.gemspec +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: ee63c9bc04ce277b3a8a20388b3127a18d12f66b
|
|
4
|
+
data.tar.gz: a2a5e7d0554110a056e6cd1dd03a83201837f59b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87cb0c1c6f6ccaf2987d8704bc69d75e0eff99b1a06af9a7f9e7147b85c3fb275249a6cb30ad737f56cf4f4dc06b5711ad44123c9ec7fdeca4176d216ecd7d72
|
|
7
|
+
data.tar.gz: 23ce26dbd432af58f6a24a7364fdc4b31cfbcd4344db0eee084f0a43ccd36bf9062e95eecf3202aa452148ec24b13255873795e1286268e18fb6f40e27a58275
|
data/README.md
CHANGED
|
@@ -106,7 +106,7 @@ dhcp-hostsfile=/etc/dnsmasq-dhcp-hosts.conf
|
|
|
106
106
|
|
|
107
107
|
## Contributing
|
|
108
108
|
|
|
109
|
-
1. Fork it ( https://github.com/
|
|
109
|
+
1. Fork it ( https://github.com/svdasein/gestio2masq/fork )
|
|
110
110
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
111
111
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
112
112
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/exe/gestio2masq
CHANGED
|
@@ -28,7 +28,7 @@ end
|
|
|
28
28
|
networks_data = mysql.query('select * from net',:symbolize_keys => true)
|
|
29
29
|
ranges_data = mysql.query('select * from ranges',:symbolize_keys => true)
|
|
30
30
|
hosts_data = mysql.query('select * from host order by hostname',:symbolize_keys => true)
|
|
31
|
-
|
|
31
|
+
hosts_extra_data = mysql.query('select custom_host_column_entries.*,custom_host_columns.name
|
|
32
32
|
from custom_host_column_entries,custom_host_columns
|
|
33
33
|
where custom_host_columns.id = custom_host_column_entries.cc_id',
|
|
34
34
|
:symbolize_keys => true)
|
|
@@ -59,7 +59,7 @@ dhcp_hosts_entries = Array.new
|
|
|
59
59
|
cnames_entries = Array.new
|
|
60
60
|
hosts_data.each { |host|
|
|
61
61
|
host[:ipaddress] = IPAddress::IPv4.parse_u32(host[:ip].to_i)
|
|
62
|
-
|
|
62
|
+
hosts_extra_data.select { |each| each[:host_id] == host[:id] } .each { |entry|
|
|
63
63
|
host[entry[:name].to_sym] = entry[:entry]
|
|
64
64
|
}
|
|
65
65
|
host[:network] = networks[host[:red_num]]
|
data/gestio2masq.gemspec
CHANGED