kitchen-itamae 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/kitchen-itamae/version.rb +1 -1
- data/lib/kitchen/provisioner/itamae.rb +6 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69f3a930309f68375ec21e44c7a43fab5b645495
|
4
|
+
data.tar.gz: 0e179f3300ad373e71e93017b08cbdbe94490c0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6757b4a0886e7a9cf8f171ab4df7227729ecb1c7ecb1f48124c8b327b9f8242b3f3d106f8a9acb1a435c6a2a84fe1c708c2e9ec0f1e14945f1a2ad2bf6861372
|
7
|
+
data.tar.gz: e7f614f8aafce2277724ec31c39a449bf31634e447ed34dda2987c37fc291b81192000967d328633be73034f6f66b154d2ace836c99a1bce62ea0d62dd48af9b
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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("
|
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')]
|