kameleon-builder 2.7.5 → 2.7.6
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/.bumpversion.cfg +1 -1
- data/CHANGES +8 -0
- data/lib/kameleon/recipe.rb +0 -6
- data/lib/kameleon/utils.rb +1 -2
- data/tests/recipes/steps/test_uuid_step.yaml +12 -0
- data/tests/recipes/test_recipe.yaml +2 -8
- data/version.txt +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6756bd8febc8f8df6fd15c685eb8c4b20662b38f
|
|
4
|
+
data.tar.gz: 7333259e498919e6a1ca2da029bd5930c426e298
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99fecf54c7f95c67303cf532b75364b0484df0f88246917918be084296174b0ca839ad5bcc840a30c88d13be1ad185c26b658db8de92178058fa5fe0089f7275
|
|
7
|
+
data.tar.gz: d0a2fef734d9cfed18e580b6c2fcdf44d7579c1ed6a9365f25aaba80828db8f7d94dda858b550b8861d71465e568d5e084a7c670236785bee5fe04bd3d8faa5f
|
data/.bumpversion.cfg
CHANGED
data/CHANGES
CHANGED
data/lib/kameleon/recipe.rb
CHANGED
|
@@ -490,12 +490,6 @@ module Kameleon
|
|
|
490
490
|
loaded_microsteps = strip_microsteps
|
|
491
491
|
end
|
|
492
492
|
end
|
|
493
|
-
# Resolved neested variables earlier
|
|
494
|
-
local_variables.each do |k, v|
|
|
495
|
-
if v.kind_of? String
|
|
496
|
-
local_variables[k] = Utils.resolve_vars(v, @path, @global, self, kwargs)
|
|
497
|
-
end
|
|
498
|
-
end
|
|
499
493
|
return Macrostep.new(name, loaded_microsteps, local_variables, step_path)
|
|
500
494
|
end
|
|
501
495
|
|
data/lib/kameleon/utils.rb
CHANGED
|
@@ -25,8 +25,6 @@ module Kameleon
|
|
|
25
25
|
unless m.nil?
|
|
26
26
|
path = resolve_simple_vars(m[2], yaml_path, initial_variables, kwargs)
|
|
27
27
|
resolved_path = recipe.resolve_data_path(path.chomp('"'), yaml_path)
|
|
28
|
-
#require 'pry'
|
|
29
|
-
#binding.pry
|
|
30
28
|
raw.gsub!(m[0].chomp('"'), "#{resolved_path}")
|
|
31
29
|
end
|
|
32
30
|
end
|
|
@@ -84,6 +82,7 @@ module Kameleon
|
|
|
84
82
|
# check in local vars
|
|
85
83
|
if initial_variables.has_key? strip_var
|
|
86
84
|
value = initial_variables[strip_var]
|
|
85
|
+
Kameleon.ui.debug("Resolved variable = #{strip_var}: #{value}")
|
|
87
86
|
else
|
|
88
87
|
if kwargs.fetch(:strict, true)
|
|
89
88
|
fail RecipeError, "#{yaml_path}: variable #{var} not found in local or global"
|
|
@@ -59,14 +59,8 @@ setup:
|
|
|
59
59
|
- exec_local: cat $$kameleon_data_dir/mydata.txt
|
|
60
60
|
- local_variables
|
|
61
61
|
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
- exec_local: echo toto_$${kameleon_uuid}
|
|
65
|
-
- exec_local: echo $${kameleon_short_uuid}
|
|
66
|
-
- exec_local: |
|
|
67
|
-
echo "global uuid: $${toto}_$${kameleon_uuid}"
|
|
68
|
-
- exec_local: echo $${appliance_filename}
|
|
69
|
-
- test_uuid_step
|
|
62
|
+
- test_uuid_step:
|
|
63
|
+
- my_uuid: $${kameleon_uuid}_$${kameleon_recipe_name}
|
|
70
64
|
|
|
71
65
|
export:
|
|
72
66
|
- save_appliance:
|
data/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.7.
|
|
1
|
+
2.7.6
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kameleon-builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.7.
|
|
4
|
+
version: 2.7.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Salem Harrache
|
|
@@ -189,6 +189,7 @@ files:
|
|
|
189
189
|
- tests/recipes/steps/export/save_appliance.yaml
|
|
190
190
|
- tests/recipes/steps/local_variables.yaml
|
|
191
191
|
- tests/recipes/steps/setup/linux/software_install.yaml
|
|
192
|
+
- tests/recipes/steps/test_uuid_step.yaml
|
|
192
193
|
- tests/recipes/test_recipe.yaml
|
|
193
194
|
- tests/recipes/test_recipe_child.yaml
|
|
194
195
|
- tests/test2/steps/data/mydata.txt
|
|
@@ -239,6 +240,7 @@ test_files:
|
|
|
239
240
|
- tests/recipes/steps/export/save_appliance.yaml
|
|
240
241
|
- tests/recipes/steps/local_variables.yaml
|
|
241
242
|
- tests/recipes/steps/setup/linux/software_install.yaml
|
|
243
|
+
- tests/recipes/steps/test_uuid_step.yaml
|
|
242
244
|
- tests/recipes/test_recipe.yaml
|
|
243
245
|
- tests/recipes/test_recipe_child.yaml
|
|
244
246
|
- tests/test2/steps/data/mydata.txt
|