kameleon-builder 2.8.3 → 2.9.0
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/.gitignore +1 -0
- data/CHANGES +16 -1
- data/RELEASING.rst +6 -0
- data/lib/kameleon/cli.rb +2 -2
- data/lib/kameleon/engine.rb +14 -0
- data/lib/kameleon/persistent_cache.rb +2 -1
- data/lib/kameleon/recipe.rb +1 -1
- data/version.txt +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10a1d0784e9debc5d6a2ff2fbeecea448ae460ab
|
4
|
+
data.tar.gz: 4ba768376ef0c21b166d4a80e1dda5c8cb40eb46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54f16a561da4b4ba99d1bb70dcce202ddff375293f3759afc9c0e1f65fbb3176ede757d7e40a17276903992aa67197a46c9725e5f0b4c4d2c80d8c4eb7f429b6
|
7
|
+
data.tar.gz: ec49aeb1b0178b397f71e4e1179838948821f67336f3d671135d45966fe63a9b32d275ce95de2063a8d314cea4becf17cc76ab79632ff20a3a20f0641ec73ae9
|
data/.bumpversion.cfg
CHANGED
data/.gitignore
CHANGED
data/CHANGES
CHANGED
@@ -1,10 +1,25 @@
|
|
1
1
|
Kameleon CHANGELOG
|
2
2
|
==================
|
3
3
|
|
4
|
+
Version 2.9.0
|
5
|
+
-------------
|
6
|
+
|
7
|
+
Released on June 29th 2017
|
8
|
+
|
9
|
+
- Bump to a new minor version due to the addition of the test and group commands
|
10
|
+
- Refresh documentation
|
11
|
+
|
12
|
+
Version 2.8.4
|
13
|
+
-------------
|
14
|
+
|
15
|
+
- Fix the build usage message
|
16
|
+
- Fix the cache compression options: allow no compression
|
17
|
+
- Add the test and group commands for microsteps
|
18
|
+
|
4
19
|
Version 2.8.3
|
5
20
|
-------------
|
6
21
|
|
7
|
-
-
|
22
|
+
- Patch the doc and the default new recipe template
|
8
23
|
|
9
24
|
Version 2.8.2
|
10
25
|
-------------
|
data/RELEASING.rst
CHANGED
@@ -21,3 +21,9 @@ Then for the actual releasing:
|
|
21
21
|
gem push kameleon-builder-2.7.0.gem
|
22
22
|
|
23
23
|
You need a rubygem account and I have to give you permissions so that you can push.
|
24
|
+
To do so, create an account on https://rubygems.org/ and ask an owner to do
|
25
|
+
the following command::
|
26
|
+
|
27
|
+
gem owner kameleon-builder -a your@email.com
|
28
|
+
|
29
|
+
And that's all :)
|
data/lib/kameleon/cli.rb
CHANGED
@@ -283,9 +283,9 @@ module Kameleon
|
|
283
283
|
:default => nil,
|
284
284
|
:desc => "Uses a persistent cache tar file to build the image."
|
285
285
|
method_option :cache_archive_compression, :type => :string ,
|
286
|
-
:enum => ["
|
286
|
+
:enum => ["none", "gzip", "bz2", "xz"],
|
287
287
|
:default => "gzip",
|
288
|
-
:desc => "
|
288
|
+
:desc => "Set the persistent cache tar file compression."
|
289
289
|
method_option :polipo_path, :type => :string ,
|
290
290
|
:default => nil,
|
291
291
|
:desc => "Full path of the polipo binary to use for the persistent cache."
|
data/lib/kameleon/engine.rb
CHANGED
@@ -297,6 +297,20 @@ module Kameleon
|
|
297
297
|
rescue ExecError
|
298
298
|
safe_exec_cmd(second_cmd)
|
299
299
|
end
|
300
|
+
when "test"
|
301
|
+
first_cmd, second_cmd, third_cmd = cmd.value
|
302
|
+
begin
|
303
|
+
exec_cmd(first_cmd)
|
304
|
+
rescue ExecError
|
305
|
+
safe_exec_cmd(third_cmd) unless third_cmd.nil?
|
306
|
+
else
|
307
|
+
safe_exec_cmd(second_cmd)
|
308
|
+
end
|
309
|
+
when "group"
|
310
|
+
cmds = cmd.value
|
311
|
+
cmds.each do |cmd|
|
312
|
+
safe_exec_cmd(cmd)
|
313
|
+
end
|
300
314
|
else
|
301
315
|
Kameleon.ui.warn("Unknown command : #{cmd.key}")
|
302
316
|
end
|
@@ -168,8 +168,9 @@ module Kameleon
|
|
168
168
|
elsif @archive_format.eql? "xz"
|
169
169
|
env = {"XZ_OPT" => "-9"}
|
170
170
|
Kameleon.ui.info("Packing up the generated cache in #{@cwd}/#{@name}-cache.tar.xz")
|
171
|
-
execute("tar","-
|
171
|
+
execute("tar","-cJvf #{@name}-cache.tar.xz -C #{@cache_dir} .", @cwd, env)
|
172
172
|
else
|
173
|
+
env = {}
|
173
174
|
Kameleon.ui.info("Packing up the generated cache in #{@cwd}/#{@name}-cache.tar")
|
174
175
|
execute("tar","-cvf #{@name}-cache.tar -C #{@cache_dir} .", @cwd, env)
|
175
176
|
end
|
data/lib/kameleon/recipe.rb
CHANGED
@@ -529,7 +529,7 @@ module Kameleon
|
|
529
529
|
end
|
530
530
|
Kameleon.ui.verbose("#{real_path} : nonexistent")
|
531
531
|
end
|
532
|
-
fail RecipeError, "Cannot
|
532
|
+
fail RecipeError, "Cannot find data '#{partial_path}' used in '#{step_path}'"
|
533
533
|
end
|
534
534
|
|
535
535
|
def resolve!(kwargs = {})
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.9.0
|
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.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salem Harrache
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: childprocess
|
@@ -223,7 +223,7 @@ requirements:
|
|
223
223
|
- polipo 1.0.3, or greater
|
224
224
|
- graphviz 2.38.0 or greater
|
225
225
|
rubyforge_project:
|
226
|
-
rubygems_version: 2.5.
|
226
|
+
rubygems_version: 2.5.2
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: Kameleon is a tool to build virtual machines from scratch
|