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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccc3200ef37380cfc64607a6f4db3d7a22e2a285
4
- data.tar.gz: 3e5ede0d0a9a0c3dd0e01459df8773bc126f71ef
3
+ metadata.gz: 6756bd8febc8f8df6fd15c685eb8c4b20662b38f
4
+ data.tar.gz: 7333259e498919e6a1ca2da029bd5930c426e298
5
5
  SHA512:
6
- metadata.gz: 1a3101258ab7114803fd485048cbd4d55512b9c547a391b8fe956b7632498b80d5b8c97096c4547d9472fbe477576279f1684a99d893434ce4af2d5543db9433
7
- data.tar.gz: 0426b74c6b0bef35e120643dec1716122d15c26ff23de4e4568b3787a4062e0003e29e95d8dd0aa259f7167131914c3e06f6cd10aebb8ebe50e1054bf1463271
6
+ metadata.gz: 99fecf54c7f95c67303cf532b75364b0484df0f88246917918be084296174b0ca839ad5bcc840a30c88d13be1ad185c26b658db8de92178058fa5fe0089f7275
7
+ data.tar.gz: d0a2fef734d9cfed18e580b6c2fcdf44d7579c1ed6a9365f25aaba80828db8f7d94dda858b550b8861d71465e568d5e084a7c670236785bee5fe04bd3d8faa5f
@@ -1,7 +1,7 @@
1
1
  [bumpversion]
2
2
  commit = True
3
3
  tag = True
4
- current_version = 2.7.5
4
+ current_version = 2.7.6
5
5
  parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))?
6
6
  serialize =
7
7
  {major}.{minor}.{patch}.{release}
data/CHANGES CHANGED
@@ -1,6 +1,14 @@
1
1
  Kameleon CHANGELOG
2
2
  ==================
3
3
 
4
+ Version 2.7.6
5
+ -------------
6
+
7
+ Released on August 31st 2016
8
+
9
+ - Fix step variable resolution for composed variable (#79), and containing
10
+ uuid (#90).
11
+
4
12
  Version 2.7.5
5
13
  -------------
6
14
 
@@ -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
 
@@ -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"
@@ -0,0 +1,12 @@
1
+ - my_uuid: $${kameleon_short_uuid}
2
+ - TEST_VAR: toto_tata
3
+ - version: 12.2
4
+ - variant: toto-tata
5
+ - my_distrib: $${version}-$${variant}
6
+
7
+
8
+ - do_bug:
9
+ - exec_local: |
10
+ echo my_uuid: $${my_uuid}
11
+ echo TEST_VAR: $${TEST_VAR}
12
+ echo $${my_distrib}
@@ -59,14 +59,8 @@ setup:
59
59
  - exec_local: cat $$kameleon_data_dir/mydata.txt
60
60
  - local_variables
61
61
 
62
- - test_uuid_resolve:
63
- - show_uuid:
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:
@@ -1 +1 @@
1
- 2.7.5
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.5
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