kitchen-itamae 0.0.4 → 0.0.5

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: e7ae0ffa2cbb40d89465093703fa10a64776f256
4
- data.tar.gz: 8aecb94e1ff2be8119d20efee585d3a7932963fe
3
+ metadata.gz: 69f3a930309f68375ec21e44c7a43fab5b645495
4
+ data.tar.gz: 0e179f3300ad373e71e93017b08cbdbe94490c0e
5
5
  SHA512:
6
- metadata.gz: db9b90e1515109854500ab24b82d9bdbfbe93d152802a059c3c7b59dbb3012839654550b972a98641457b1075f450ce9ba04c9854566e3eeeeeca00cfc0b2cff
7
- data.tar.gz: 6e84b488806170f8624d8a574587042b8f807282334180d7024e9e7ebdccebdc1a830c7bea302244503fd6e16114f2bfeb0e59cfc99fb37885d2d726ff085ebe
6
+ metadata.gz: 6757b4a0886e7a9cf8f171ab4df7227729ecb1c7ecb1f48124c8b327b9f8242b3f3d106f8a9acb1a435c6a2a84fe1c708c2e9ec0f1e14945f1a2ad2bf6861372
7
+ data.tar.gz: e7f614f8aafce2277724ec31c39a449bf31634e447ed34dda2987c37fc291b81192000967d328633be73034f6f66b154d2ace836c99a1bce62ea0d62dd48af9b
@@ -1,5 +1,10 @@
1
1
  CHANGELOG of Itamae::Kitchen
2
2
 
3
+ ## 0.0.5
4
+
5
+ - Cleanup: update itamae_root behavior.
6
+ - Cleanup: remove few debug output.
7
+
3
8
  ## 0.0.4
4
9
 
5
10
  - Bugfix: itamae not found on centos6.
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Itamae
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -13,22 +13,21 @@ module Kitchen
13
13
  default_config :chef_omnibus_bin_dir, "/opt/chef/embedded/bin"
14
14
  default_config :chef_omnibus_install_options, nil
15
15
 
16
- default_config :itamae_root, "kitchen"
16
+ default_config :itamae_root do |provisioner|
17
+ provisioner.calculate_path("kitchen")
18
+ end
19
+ expand_path_for :itamae_root
20
+
17
21
  default_config :recipe_list, []
18
22
  default_config :node_json, nil
19
23
  default_config :with_ohai, false
20
24
  default_config :itamae_option, nil
21
25
  default_config :itamae_plugins, []
22
26
 
23
- def initialize(config = {})
24
- debug(JSON.pretty_generate(config))
25
- init_config(config)
26
- end
27
-
28
27
  # (see Base#create_sandbox)
29
28
  def create_sandbox
30
29
  super
31
- FileUtils.cp_r(Dir.glob("kitchen/*"), sandbox_path)
30
+ FileUtils.cp_r(Dir.glob("#{config[:itamae_root]}/*"), sandbox_path)
32
31
  end
33
32
 
34
33
  # (see Base#init_command)
@@ -44,7 +43,6 @@ module Kitchen
44
43
 
45
44
  # (see Base#run_command)
46
45
  def run_command
47
- debug(instance.inspect)
48
46
  debug(JSON.pretty_generate(config))
49
47
  runlist = config[:recipe_list].map do |recipe|
50
48
  cmd = ["cd #{config[:root_path]};", sudo('/opt/chef/bin/itamae')]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly