解压文件的厨师食谱

问题描述 投票:0回答:2

我正在寻找Chef配方解压缩我下载到Windows 2012 EC2实例的文件。我正在使用下面的一个。 Zip文件(Try.Zip)保存在C:\ data目录中,我希望将其解压缩到同一个文件夹。

zipfile'C:\ data \ Try.zip'进入'C:\ data \'结束

chef-recipe
2个回答
0
投票

使用seven_zip食谱。自述文件的示例适合您的“问题”。


0
投票

我能够使用windows_zipfile命令解压缩文件并使用以下Chef资源定义保存在C:/foldername位置:

windows_zipfile 'C:/foldername' do
   source 'https://location/filename.zip'
   action :unzip
   overwrite true
end

您可以找到有关此资源in Chef documentation的更多信息

© www.soinside.com 2019 - 2024. All rights reserved.