kameleon-builder 2.8.3 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98b9313831566a71f87622fd29f8e87973a601df
4
- data.tar.gz: '09aed15988ea673f8f9f9109ed67f007eda70b5f'
3
+ metadata.gz: 10a1d0784e9debc5d6a2ff2fbeecea448ae460ab
4
+ data.tar.gz: 4ba768376ef0c21b166d4a80e1dda5c8cb40eb46
5
5
  SHA512:
6
- metadata.gz: e87e5694fe8411bdf6a78655f679ca33cdccafc058a1245031743cd911333b3d9eb6b6d3447de5aee869ef747310edd15006b5ec5e5f3d8732081413f3985af6
7
- data.tar.gz: ba42f8fdcdd9ed86c271095faadaa29c2434bc26deceb469e09adbe37c34532378efb8943d076c3521aafc94c77cb75a5745a0f57cde9c89fdd459c445f6f8ac
6
+ metadata.gz: 54f16a561da4b4ba99d1bb70dcce202ddff375293f3759afc9c0e1f65fbb3176ede757d7e40a17276903992aa67197a46c9725e5f0b4c4d2c80d8c4eb7f429b6
7
+ data.tar.gz: ec49aeb1b0178b397f71e4e1179838948821f67336f3d671135d45966fe63a9b32d275ce95de2063a8d314cea4becf17cc76ab79632ff20a3a20f0641ec73ae9
@@ -1,7 +1,7 @@
1
1
  [bumpversion]
2
2
  commit = True
3
3
  tag = True
4
- current_version = 2.8.3
4
+ current_version = 2.9.0
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/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ *~
1
2
  *.swp
2
3
  *.gem
3
4
  *.rbc
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
- - patch the doc and the default new recipe template
22
+ - Patch the doc and the default new recipe template
8
23
 
9
24
  Version 2.8.2
10
25
  -------------
@@ -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 :)
@@ -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 => ["gzip", "xz", "bz2"],
286
+ :enum => ["none", "gzip", "bz2", "xz"],
287
287
  :default => "gzip",
288
- :desc => "Uses a persistent cache tar file to build the image."
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."
@@ -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","-cJf #{@name}-cache.tar.xz -C #{@cache_dir} .", @cwd, env)
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
@@ -529,7 +529,7 @@ module Kameleon
529
529
  end
530
530
  Kameleon.ui.verbose("#{real_path} : nonexistent")
531
531
  end
532
- fail RecipeError, "Cannot found data '#{partial_path}' used in '#{step_path}'"
532
+ fail RecipeError, "Cannot find data '#{partial_path}' used in '#{step_path}'"
533
533
  end
534
534
 
535
535
  def resolve!(kwargs = {})
@@ -1 +1 @@
1
- 2.8.3
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.8.3
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: 2016-09-08 00:00:00.000000000 Z
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.1
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