linecook-gem 0.4.2 → 0.4.3

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: 24bf13e1616e8352819d62a8a7456dac3c2810a9
4
- data.tar.gz: 93ac6a5839f3bd104b6b4b6be422683cefb4647d
3
+ metadata.gz: 361c3e5d936d38c9efac1725fb11147929799c8b
4
+ data.tar.gz: 2d51c60b76cad83f94d596bfa66f76498b975b7a
5
5
  SHA512:
6
- metadata.gz: 3aaaf7df96d2febdb5edc58dc27034d20ff00e906dc762fe15ec27291b310e3d47002d05cc3195043b73042a747c195a8fd760fdeb1b57b6c156e445e6ade4e0
7
- data.tar.gz: 22af8bbb43d7495428e2db2a80562b4ca18549a9ae993ad3fa40b13bb5111e3e80a8b983473b54084f55a60f07913c461807b6732b2bda84eee7af0464e670e1
6
+ metadata.gz: c4f6154ec6423431df30c96bb3b8337541c45a6f8500b9cdac8052edbcb13ce843fd5c0353202c3d97d553fccf4a623558be8ee8bee595029251019fd37dbbe6
7
+ data.tar.gz: 3a05b0025fbc98369f491d2a455c4b58af0bcaf042312a4e23be5e72b3c32709a82bd3335f47e9998f5d3b0c11e246e5ae372726a49108a1380fb6f672fa76cd
@@ -11,8 +11,9 @@ module Linecook
11
11
 
12
12
  def bake(name: nil, tag: nil, id: nil, snapshot: nil, upload: nil, package: nil, build: nil, keep: nil, clean: nil)
13
13
  build_agent = Linecook::Build.new(name, tag: tag, id: id, image: image(name))
14
+ resume = clean ? false : true
14
15
  provider(name).provision(build_agent, name) if build
15
- snapshot = build_agent.snapshot(save: true, resume: true unless clean) if snapshot || upload || package
16
+ snapshot = build_agent.snapshot(save: true, resume: resume) if snapshot || upload || package
16
17
  Linecook::ImageManager.upload(snapshot, type: build_agent.type) if upload || package
17
18
  Linecook::Packager.package(snapshot, type: build_agent.type) if package
18
19
  rescue => e
@@ -1,3 +1,3 @@
1
1
  module Linecook
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linecook-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel