dory 0.4.1 → 0.4.2
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/lib/dory/config.rb +2 -2
- data/lib/dory/dnsmasq.rb +6 -5
- data/lib/dory/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: 49a33137371df2a16e439572e7089d10516ae490
|
4
|
+
data.tar.gz: 6a4b080407d2e8a6bbb5d6b8097f395c2aa79fad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dbe85b3861e2ff536c0039d99c8c5447b41d7b337623f8fbe4bc0c1b51b686cb7b82f45c7d153cefb0462662d1535e23eb2019e0ebc7e2908b89635f4fdb61b
|
7
|
+
data.tar.gz: 0ba2bdcd799e4cfe2537f860283b57c21d3fad48d67a69913e8bbef8bb94a70acfcca1ad32d7c10389f756eb6172132f3c5d5de124a8a74761c88a0130ec4603
|
data/lib/dory/config.rb
CHANGED
@@ -81,8 +81,8 @@ module Dory
|
|
81
81
|
# If there's a single domain and address, upgrade to the array format
|
82
82
|
if newsettings[:dory][:dnsmasq][:domain]
|
83
83
|
newsettings[:dory][:dnsmasq][:domains] = [{
|
84
|
-
|
85
|
-
|
84
|
+
domain: newsettings[:dory][:dnsmasq][:domain],
|
85
|
+
address: newsettings[:dory][:dnsmasq][:address] || '127.0.0.1'
|
86
86
|
}]
|
87
87
|
newsettings[:dory][:dnsmasq].delete(:domain)
|
88
88
|
newsettings[:dory][:dnsmasq].delete(:address)
|
data/lib/dory/dnsmasq.rb
CHANGED
@@ -30,13 +30,14 @@ module Dory
|
|
30
30
|
def self.handle_error(command_output)
|
31
31
|
puts "[DEBUG] handling dnsmasq start error" if Dory::Config.debug?
|
32
32
|
# If we've already tried to handle failure, prevent infinite recursion
|
33
|
-
if @@first_attempt_failed
|
34
|
-
if Dory::Config.debug?
|
35
|
-
puts "[DEBUG] Attempt to kill conflicting service failed" if Dory
|
36
|
-
end
|
33
|
+
if @@first_attempt_failed
|
34
|
+
puts "[DEBUG] Attempt to kill conflicting service failed" if Dory::Config.debug?
|
37
35
|
return false
|
38
36
|
else
|
39
|
-
|
37
|
+
if Dory::Config.debug?
|
38
|
+
puts "[DEBUG] First attempt to start dnsmasq failed." \
|
39
|
+
"There is probably a conflicting service present"
|
40
|
+
end
|
40
41
|
@@first_attempt_failed = true
|
41
42
|
self.start(handle_error: false)
|
42
43
|
end
|
data/lib/dory/version.rb
CHANGED