zygote 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zygote/version.rb +1 -1
- data/views/menu.erb +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: cb685c710d11948c01a676b3a5e2fe7df5e78e98
|
4
|
+
data.tar.gz: 54915838f5aa83edb7088efa978d2aca242a4c7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2976cb02ebe35a13e52b144c17873de7329be5e71ed1ec17ccde57dd52a9e7284250e7af07a72542ee1265ab4de3b3bf94377ec2540c8c3e67a174fe95052af9
|
7
|
+
data.tar.gz: 9f254761b01073a42268dbe7d84646fe9dffe1d17a3152569f441e56e7c509b1363d03af7e03ee2e1a919ddc34d985596176bbe6cee611b32eec6f497c3560a5
|
data/lib/zygote/version.rb
CHANGED
data/views/menu.erb
CHANGED
@@ -75,7 +75,7 @@ goto ${selected}
|
|
75
75
|
# Generate chains for each submenu entry
|
76
76
|
<% data['menu']['submenu'].each do |entry, data| %>
|
77
77
|
<% local_params = (data['params'] || {}).merge(params) %>
|
78
|
-
<% parmstr = {entry: entry}.merge(local_params).map{ |k,v| "#{k}=#{v}"}.join('&').gsub('?','').gsub(' ','') %>
|
78
|
+
<% parmstr = {entry: entry}.merge(local_params).map{ |k,v| "#{k}=#{v.is_a?(String) ? v : Base64.encode64(JSON.dump(v)).gsub(/\n|=/, '')}"}.join('&').gsub('?','').gsub(' ','') %>
|
79
79
|
:<%= cell %>-<%= entry %>
|
80
80
|
chain --replace --autofree http://${dhcp-server}/cell/<%= cell %>/<%= data['action'] || 'boot' %><%= parmstr.empty? ? "" : "?#{parmstr}" %>
|
81
81
|
<% end %>
|