manageiq-appliance_console 1.2.1 → 1.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b7f2830c4f3fa4bb98ce5ee2dda84982ed187c01239694b833148ecd006a7dc
|
|
4
|
+
data.tar.gz: 98b8f63c0bca33abcb12c8a00f0c78a2cc45707b71f13072cd4374b8268b84a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8edfcc0982c851a3b82a41b3c4da94c5dd52825463c112a9a9a2570f85c1235d70b3d7034327bd9216e8ccda17d169acd236c5a5bc886b2368a01a96b16671f
|
|
7
|
+
data.tar.gz: 25a0ba685ab16923c8b0c5fc6a4215a1ab2c416d117cf8e834b8e79484f4924eccd3da1540e902f2261c4162f2ad62c1b75394e09dc6aba1ffa0745ed06cfca8
|
data/bin/appliance_console
CHANGED
|
@@ -172,8 +172,8 @@ To modify the configuration, use a web browser to access the management page.
|
|
|
172
172
|
new_ip = ask_for_ipv4("IP Address", ip)
|
|
173
173
|
new_mask = ask_for_ipv4("Netmask", mask)
|
|
174
174
|
new_gw = ask_for_ipv4("Gateway", gw)
|
|
175
|
-
new_dns1 =
|
|
176
|
-
new_dns2 =
|
|
175
|
+
new_dns1 = ask_for_ip("Primary DNS", dns1)
|
|
176
|
+
new_dns2 = ask_for_ip_or_none("Secondary DNS (Enter 'none' for no value)", dns2)
|
|
177
177
|
|
|
178
178
|
new_search_order = ask_for_many("domain", "Domain search order", order)
|
|
179
179
|
|
|
@@ -74,6 +74,10 @@ module ApplianceConsole
|
|
|
74
74
|
just_ask(prompt, default, validate, error_text, &block)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
def ask_for_ip_or_none(prompt, default = nil)
|
|
78
|
+
ask_for_ip(prompt, default, Regexp.union(NONE_REGEXP, IP_REGEXP)).gsub(NONE_REGEXP, "")
|
|
79
|
+
end
|
|
80
|
+
|
|
77
81
|
def ask_for_ipv4(prompt, default)
|
|
78
82
|
ask_for_ip(prompt, default, IPV4_REGEXP)
|
|
79
83
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: manageiq-appliance_console
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ManageIQ Developers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-12-
|
|
11
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|