zygote 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zygote/http.rb +2 -1
- data/lib/zygote/util.rb +7 -1
- data/lib/zygote/version.rb +1 -1
- data/views/menu.erb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904d623bda334f025745e1596c6669fd01d32edd
|
4
|
+
data.tar.gz: 7ec24e21f6e3d7ca851010b0be999540d5c655b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 892e6aab33ea5ab41e2d555bcbddb60d4c880406b85bf2acd9b7151a9b83c50fc1d46cea1ad0efdafa338864ad467a9535e7a5d32200962214680a7d43a90d32
|
7
|
+
data.tar.gz: 6d7bbf2e03252486e8b34175d0e6bd74d21247620ea64ff13febbf9576c0c94ec4fc1e8d95fda5324f18f7c089ceb4bb56abf17605fed3d5de4396258511ef44
|
data/lib/zygote/http.rb
CHANGED
@@ -57,9 +57,10 @@ module Zygote
|
|
57
57
|
# Clean params into a simple hash
|
58
58
|
cleaned = clean_params(params.to_h)
|
59
59
|
# Add the cell to the parameters
|
60
|
+
delegated = cleaned['delegated']
|
60
61
|
cell = cleaned['cell']
|
61
62
|
# Merge the cleaned params in with any cell options
|
62
|
-
cell_opts = Zygote::Web.cell_config['index']['cells'][cell] || {}
|
63
|
+
cell_opts = Zygote::Web.cell_config['index']['cells'][delegated || cell] || {}
|
63
64
|
opts = cell_opts.merge('params' => cleaned || {})
|
64
65
|
body { erb :"#{cell}/#{cleaned['action']}".to_sym, locals: { opts: opts } }
|
65
66
|
end
|
data/lib/zygote/util.rb
CHANGED
data/lib/zygote/version.rb
CHANGED
data/views/menu.erb
CHANGED
@@ -73,11 +73,12 @@ set submenu-timeout 0
|
|
73
73
|
goto ${selected}
|
74
74
|
|
75
75
|
# Generate chains for each submenu entry
|
76
|
-
<% data['menu']['submenu'].each do |entry,
|
77
|
-
<% local_params = (
|
76
|
+
<% data['menu']['submenu'].each do |entry, subdata| %>
|
77
|
+
<% local_params = (subdata['params'] || {}).merge(params) %>
|
78
|
+
<% local_params.merge!({ delegated: cell}) if data['delegate'] %>
|
78
79
|
<% parmstr = {entry: entry}.merge(local_params).to_query %>
|
79
80
|
:<%= cell %>-<%= entry %>
|
80
|
-
chain --replace --autofree http://${dhcp-server}/cell/<%= cell %>/<%=
|
81
|
+
chain --replace --autofree http://${dhcp-server}/cell/<%= data['delegate'] || cell %>/<%= subdata['action'] || 'boot' %><%= parmstr.empty? ? "" : "?#{parmstr}" %>
|
81
82
|
<% end %>
|
82
83
|
<% end %>
|
83
84
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zygote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Hamel
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
231
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.4.8
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: Differentiate servers with iPXE
|