linecook-gem 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linecook/cli.rb +1 -0
- data/lib/linecook/provisioner/manager.rb +2 -2
- 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: b8a07f258d0c00c7c8741e7879072ca58d094379
|
4
|
+
data.tar.gz: 114f88677ce7f42036ffd353f176246757321325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b47c80754f7af6d185718ab3512338322b4538a02f0521e74b119e1b2c76ca0e949b3c34f9cdae53a0405cba85b2fe1fc9f19f2de59407964849d354118eb13
|
7
|
+
data.tar.gz: 0902ad2198a2d04188a874170a3e8cb7d1d9f205db3c3c997f7595124f1ec47a1b875f100153df7dc661bfb805c847436dbb52a6928c5fe48aea63013cb84810
|
data/lib/linecook/cli.rb
CHANGED
@@ -109,6 +109,7 @@ class Linecook::CLI < Thor
|
|
109
109
|
desc 'bake', 'Bake a new image.'
|
110
110
|
method_option :name, type: :string, required: true, banner: 'ROLE_NAME', desc: 'Name of the role to build', aliases: '-n'
|
111
111
|
method_option :image, type: :string, banner: 'SOURCE_IMAGE', desc: 'Source image to seed the build.', aliases: '-i'
|
112
|
+
method_option :keep, type: :boolean, default: true, desc: 'Keep the build running when done', aliases: '-k'
|
112
113
|
method_option :build, type: :boolean, default: true, desc: 'Build the image', aliases: '-b'
|
113
114
|
method_option :snapshot, type: :boolean, default: false, desc: 'Snapshot the resulting build to create an image', aliases: '-s'
|
114
115
|
method_option :upload, type: :boolean, default: false, desc: 'Upload the resulting build. Implies --snapshot and --encrypt.', aliases: '-u'
|
@@ -8,13 +8,13 @@ module Linecook
|
|
8
8
|
module Baker
|
9
9
|
extend self
|
10
10
|
|
11
|
-
def bake(name: nil, image: nil, snapshot: nil, upload: nil, package: nil, build: nil)
|
11
|
+
def bake(name: nil, image: nil, snapshot: nil, upload: nil, package: nil, build: nil, keep: nil)
|
12
12
|
build_agent = Linecook::Build.new(name, image: image)
|
13
13
|
provider(name).provision(build_agent, name) if build
|
14
14
|
snapshot = build_agent.snapshot(save: true) if snapshot || upload || package
|
15
15
|
Linecook::ImageManager.upload(snapshot) if upload || package
|
16
16
|
Linecook::Packager.package(snapshot) if package
|
17
|
-
build_agent.stop
|
17
|
+
build_agent.stop unless keep
|
18
18
|
end
|
19
19
|
|
20
20
|
private
|
data/lib/linecook/version.rb
CHANGED