summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
diff options
context:
space:
mode:
Diffstat (limited to 'kitchen-tests/cookbooks/end_to_end/recipes/default.rb')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/default.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
index bf132bf6b0..7c9856d909 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
@@ -96,15 +96,15 @@ openssl_rsa_public_key "/etc/ssl/rsakey_aes128cbc.pub" do
end
# test various archive formats in the archive_file resource
-%w(tourism.tar.gz tourism.tar.xz tourism.zip).each do |archive|
- cookbook_file File.join(Chef::Config[:file_cache_path], archive) do
- source archive
- end
-
- archive_file archive do
- path File.join(Chef::Config[:file_cache_path], archive)
- extract_to File.join(Chef::Config[:file_cache_path], archive.gsub('.', '_'))
- end
+%w{tourism.tar.gz tourism.tar.xz tourism.zip}.each do |archive|
+ cookbook_file File.join(Chef::Config[:file_cache_path], archive) do
+ source archive
+ end
+
+ archive_file archive do
+ path File.join(Chef::Config[:file_cache_path], archive)
+ extract_to File.join(Chef::Config[:file_cache_path], archive.tr(".", "_"))
+ end
end
include_recipe "::tests"