summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-04-15 11:36:37 -0700
committerTim Smith <tsmith@chef.io>2019-04-15 11:36:37 -0700
commit02be687aedc00cbb9d353fdf237895c01d8e730b (patch)
tree27be7116fe17da579746571325f29c7bf73e2be6 /kitchen-tests
parentae43342056c65422df4f350dc9c389c5bd5d166d (diff)
downloadchef-02be687aedc00cbb9d353fdf237895c01d8e730b.tar.gz
Fix specs and chefstyle warningsarchive_file
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-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"