linecook-gem 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef5a578cd9e1a795d4ba5cd7c16ca326d615535f
4
- data.tar.gz: 1469ebb701032c68337d9d658cfa2ce80fedd6fc
3
+ metadata.gz: b8a07f258d0c00c7c8741e7879072ca58d094379
4
+ data.tar.gz: 114f88677ce7f42036ffd353f176246757321325
5
5
  SHA512:
6
- metadata.gz: 069f3ae423ebdd73f7f82ef6c24723a6707b2d4424bbb7603e57b0431b71841bd4312923e42741527f179044e50cf9417803a95033b47beb9d78678bf085078a
7
- data.tar.gz: 50daa0e9e7392b3468a886bac7830c4cfa3b52078cafad22cef026d925a40d7ff6d898a969cbf8708f350702aa1f01b53b21e8d1441ec5c8bd1b7e04fb33d691
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
@@ -1,3 +1,3 @@
1
1
  module Linecook
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel