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 +4 -4
- data/lib/linecook/provisioner/manager.rb +2 -1
- data/lib/linecook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 361c3e5d936d38c9efac1725fb11147929799c8b
|
4
|
+
data.tar.gz: 2d51c60b76cad83f94d596bfa66f76498b975b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
data/lib/linecook/version.rb
CHANGED