itamae 1.9.10 → 1.9.11
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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/itamae/backend.rb +4 -0
- data/lib/itamae/cli.rb +6 -6
- data/lib/itamae/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 217d5dd79f8f883f0224aaebe09cf2e0eef4e1c1
|
|
4
|
+
data.tar.gz: 80a27dfa6ee6b0d04200001eb2ab57a1480264f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b980d16ac6c8ee8eb112c4a55bd7f0bab97ae4eaa148d783fc5af741b9afb9a3275b1ebbba8a9bb5dd34dc07f1a8d13ab7e4d2320e601993316024646182d318
|
|
7
|
+
data.tar.gz: c6400d880e7f96d67a55af5973881fe9c6f5e6b1678a7faad4fb094e74af5a157629eda2ad20f75366b58b1465e41d1bdd740eb8dd25af498d1a0a9503eef2aa
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
data/lib/itamae/backend.rb
CHANGED
|
@@ -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
|
data/lib/itamae/cli.rb
CHANGED
|
@@ -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."
|
data/lib/itamae/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
316
|
+
rubygems_version: 2.6.8
|
|
317
317
|
signing_key:
|
|
318
318
|
specification_version: 4
|
|
319
319
|
summary: Simple Configuration Management Tool
|