itamae 1.9.10 → 1.9.11

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: c5c2bbaa65e9c33670186255fd00fcd0ec14a7d9
4
- data.tar.gz: 71f925946fb5f63bd562b918c28756d389caa5e9
3
+ metadata.gz: 217d5dd79f8f883f0224aaebe09cf2e0eef4e1c1
4
+ data.tar.gz: 80a27dfa6ee6b0d04200001eb2ab57a1480264f9
5
5
  SHA512:
6
- metadata.gz: 1c7e267d4bcf255cdebb1b88a83821664a4de6ef43a9757ca963ad74fa94fb79f3fbe7bb1f2f71c1ed472b02160f0d0bb11e081dc16e4ad208498a71de17a2b0
7
- data.tar.gz: 4500e83e08902ab1ab61abd886f5be02f74c351df2a8e9465e4dbf4bc430317255a3640c68f78607235c16ae544c98c15cc025b7c94008fe9b35942801e7c110
6
+ metadata.gz: b980d16ac6c8ee8eb112c4a55bd7f0bab97ae4eaa148d783fc5af741b9afb9a3275b1ebbba8a9bb5dd34dc07f1a8d13ab7e4d2320e601993316024646182d318
7
+ data.tar.gz: c6400d880e7f96d67a55af5973881fe9c6f5e6b1678a7faad4fb094e74af5a157629eda2ad20f75366b58b1465e41d1bdd740eb8dd25af498d1a0a9503eef2aa
@@ -1,3 +1,15 @@
1
+ ## v1.9.11
2
+
3
+ Features
4
+
5
+ - [docker backend: Support image tagging](https://github.com/itamae-kitchen/itamae/pull/230)
6
+ - [docker backend: Support docker_container_create_options](https://github.com/itamae-kitchen/itamae/pull/231)
7
+
8
+
9
+ Bugfixes
10
+
11
+ - [Fix help subcommand](https://github.com/itamae-kitchen/itamae/pull/235)
12
+
1
13
  ## v1.9.10
2
14
 
3
15
  Features
@@ -270,6 +270,9 @@ module Itamae
270
270
  class Docker < Base
271
271
  def finalize
272
272
  image = @backend.commit_container
273
+ /\A(?<repo>.+?)(?:|:(?<tag>[^:]+))\z/.match(@options[:tag]) do |m|
274
+ image.tag(repo: m[:repo], tag: m[:tag])
275
+ end
273
276
  Itamae.logger.info "Image created: #{image.id}"
274
277
  end
275
278
 
@@ -289,6 +292,7 @@ module Itamae
289
292
  docker_image: @options[:image],
290
293
  docker_container: @options[:container],
291
294
  shell: @options[:shell],
295
+ docker_container_create_options: @options[:docker_container_create_options],
292
296
  )
293
297
  end
294
298
  end
@@ -5,15 +5,11 @@ module Itamae
5
5
  class CLI < Thor
6
6
  GENERATE_TARGETS = %w[cookbook role].freeze
7
7
 
8
- class_option :log_level, type: :string, aliases: ['-l'], default: 'info'
9
- class_option :color, type: :boolean, default: true
10
- class_option :config, type: :string, aliases: ['-c']
11
-
12
8
  def initialize(*)
13
9
  super
14
10
 
15
- Itamae.logger.level = ::Logger.const_get(options[:log_level].upcase)
16
- Itamae.logger.formatter.colored = options[:color]
11
+ Itamae.logger.level = ::Logger.const_get(options[:log_level].upcase) if options[:log_level]
12
+ Itamae.logger.formatter.colored = options[:color] if options[:color]
17
13
  end
18
14
 
19
15
  def self.define_exec_options
@@ -26,6 +22,9 @@ module Itamae
26
22
  option :ohai, type: :boolean, default: false, desc: "This option is DEPRECATED and will be unavailable."
27
23
  option :profile, type: :string, desc: "[EXPERIMENTAL] Save profiling data", banner: "PATH"
28
24
  option :detailed_exitcode, type: :boolean, default: false, desc: "exit code 0 - The run succeeded with no changes or failures, exit code 1 - The run failed, exit code 2 - The run succeeded, and some resources were changed"
25
+ option :log_level, type: :string, aliases: ['-l'], default: 'info'
26
+ option :color, type: :boolean, default: true
27
+ option :config, type: :string, aliases: ['-c']
29
28
  end
30
29
 
31
30
  desc "local RECIPE [RECIPE...]", "Run Itamae locally"
@@ -65,6 +64,7 @@ module Itamae
65
64
  option :image, type: :string, desc: "This option or 'container' option is required."
66
65
  option :container, type: :string, desc: "This option or 'image' option is required."
67
66
  option :tls_verify_peer, type: :boolean, default: true
67
+ option :tag, type: :string
68
68
  def docker(*recipe_files)
69
69
  if recipe_files.empty?
70
70
  raise "Please specify recipe files."
@@ -1,3 +1,3 @@
1
1
  module Itamae
2
- VERSION = "1.9.10"
2
+ VERSION = "1.9.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.10
4
+ version: 1.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  version: '0'
314
314
  requirements: []
315
315
  rubyforge_project:
316
- rubygems_version: 2.5.1
316
+ rubygems_version: 2.6.8
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: Simple Configuration Management Tool