itamae 1.12.1 → 1.12.5

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
  SHA256:
3
- metadata.gz: a87b38ab15d48a077ad91bb8b3ff7fe8a07df9068a19ec5fbec2b29f4294869f
4
- data.tar.gz: 6ad7b7f90b63f5d4d44cba8a7335259b55c539f04775812ca1ee9906c91d677c
3
+ metadata.gz: e47ead5c51f39486dc78c265eb1d7ac31ccb1d3597597c73043513c50f755fc7
4
+ data.tar.gz: fb29caac7b950f41e0d24f034a8aec9bac1205263ce1556dbcf6df139f555f6c
5
5
  SHA512:
6
- metadata.gz: bf4bfdb3a108826702395d81176b8b75282809868a6c6562e6e1301c7bdef7633c72358f658b62dee07795aa49d2867d706f4ee499cc2ab5c1d0a9f5ebf8edf6
7
- data.tar.gz: cc6ec5583ad859f9c09f81aafb1e5a909f9ebbe26c0874a28ae177d5840e1c62cbbcd4f8e176d49fd892cdf166473f7f58243bd5abcfe17164040d743615f1a0
6
+ metadata.gz: d0fc18bd902d82bd812fd0a6f65f2e3788c538c22f2141a07201c01e58c0c0c943aa449fc20e5cc3d4f203514595d5f0573ad84bf89c06fe60e6eab7c2f6dcd1
7
+ data.tar.gz: b0f179fcaa5de472f01afcc716d9407e332ace2e11d897318205e2630440b866f1802e3dc52800e106110668aa64b2954e39be0f997404bf03ad73aa9d1a4671
@@ -9,6 +9,8 @@ on:
9
9
  - opened
10
10
  - synchronize
11
11
  - reopened
12
+ schedule:
13
+ - cron: "0 0 * * 5" # JST 9:00 (Fri)
12
14
 
13
15
  jobs:
14
16
  unit:
@@ -25,6 +27,7 @@ jobs:
25
27
  - "2.6"
26
28
  - "2.7"
27
29
  - "3.0"
30
+ - "3.1"
28
31
  rubyopt:
29
32
  - ""
30
33
  - "--jit"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.1...master)
2
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.5...master)
3
+
4
+ ## v1.12.5
5
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.4...v1.12.5)
6
+
7
+ Bugfixes
8
+
9
+ - [Define exit_on_failure? to suppress thor's warning](https://github.com/itamae-kitchen/itamae/pull/344)
10
+
11
+ ## v1.12.4
12
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.3...v1.12.4)
13
+
14
+ Improvements
15
+
16
+ - [Initialize tmp_dir if no tmpdir option was specified.](https://github.com/itamae-kitchen/itamae/pull/341)
17
+
18
+ ## v1.12.3
19
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.2...v1.12.3)
20
+
21
+ Bugfixes
22
+
23
+ - [Fix Chef install script URL (by @NPoi)](https://github.com/itamae-kitchen/itamae/pull/339)
24
+
25
+ ## v1.12.2
26
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.1...v1.12.2)
27
+
28
+ Improvements
29
+
30
+ - [remote_directory: add diff -r option](https://github.com/itamae-kitchen/itamae/pull/338)
3
31
 
4
32
  ## v1.12.1
5
33
  [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.0...v1.12.1)
data/bin/itamae CHANGED
@@ -2,4 +2,3 @@
2
2
 
3
3
  require 'itamae/cli'
4
4
  Itamae::CLI.start
5
-
data/lib/itamae/cli.rb CHANGED
@@ -36,6 +36,10 @@ module Itamae
36
36
  end
37
37
  end
38
38
 
39
+ def self.exit_on_failure?
40
+ true
41
+ end
42
+
39
43
  desc "local RECIPE [RECIPE...]", "Run Itamae locally"
40
44
  define_exec_options
41
45
  def local(*recipe_files)
@@ -39,7 +39,7 @@ module Itamae
39
39
  super
40
40
 
41
41
  if current.exist
42
- diff = run_command(["diff", "-u", attributes.path, @temppath], error: false)
42
+ diff = run_command(["diff", "-u", "-r", attributes.path, @temppath], error: false)
43
43
  if diff.exit_status == 0
44
44
  # no change
45
45
  Itamae.logger.debug "directory content will not change"
data/lib/itamae/runner.rb CHANGED
@@ -30,7 +30,7 @@ module Itamae
30
30
  prepare_handler
31
31
 
32
32
  @node = create_node
33
- @tmpdir = options[:tmp_dir]
33
+ @tmpdir = options[:tmp_dir] || '/tmp/itamae_tmp'
34
34
  @children = RecipeChildren.new
35
35
  @diff = false
36
36
 
@@ -98,7 +98,7 @@ module Itamae
98
98
  unless @backend.run_command("which ohai", error: false).exit_status == 0
99
99
  # install Ohai
100
100
  Itamae.logger.info "Installing Chef package... (to use Ohai)"
101
- @backend.run_command("curl -L https://www.opscode.com/chef/install.sh | bash")
101
+ @backend.run_command("curl -L https://omnitruck.chef.io/install.sh | bash")
102
102
  end
103
103
 
104
104
  Itamae.logger.info "Loading node data via ohai..."
@@ -1,3 +1,3 @@
1
1
  module Itamae
2
- VERSION = "1.12.1"
2
+ VERSION = "1.12.5"
3
3
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  - Yusuke Nakamura
9
9
  - sue445
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-17 00:00:00.000000000 Z
13
+ date: 2021-12-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -200,7 +200,7 @@ dependencies:
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
- description:
203
+ description:
204
204
  email:
205
205
  - ryota.arai@gmail.com
206
206
  - yusuke1994525@gmail.com
@@ -316,7 +316,7 @@ metadata:
316
316
  homepage_uri: https://itamae.kitchen/
317
317
  source_code_uri: https://github.com/itamae-kitchen/itamae
318
318
  changelog_uri: https://github.com/itamae-kitchen/itamae/blob/master/CHANGELOG.md
319
- post_install_message:
319
+ post_install_message:
320
320
  rdoc_options: []
321
321
  require_paths:
322
322
  - lib
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  version: '0'
333
333
  requirements: []
334
334
  rubygems_version: 3.2.3
335
- signing_key:
335
+ signing_key:
336
336
  specification_version: 4
337
337
  summary: Simple Configuration Management Tool
338
338
  test_files: