cookbook 'seven_zip', '= 2.0.0'
seven_zip
(23) Versions
2.0.0
-
Follow32
Installs/Configures 7-Zip
cookbook 'seven_zip', '= 2.0.0', :supermarket
knife supermarket install seven_zip
knife supermarket download seven_zip
seven_zip Cookbook
7-Zip is a file archiver with a high compression ratio. This cookbook installs the full 7-zip suite of tools (GUI and CLI). This cookbook replaces the older 7-zip cookbook.
Requirements
Platforms
- Windows XP
- Windows Vista
- Windows Server 2003 R2
- Windows 7
- Windows Server 2008 (R1, R2)
- Windows 8, 8.1
- Windows Server 2012 (R1, R2)
Chef
- Chef >= 11.6
Cookbooks
- windows
Attributes
- (optional)
node['seven_zip']['home']
- specify location for 7-zip installation. - (optional)
node['seven_zip']['syspath']
- if true, adds 7-zip directory to system path.
Resource/Provider
seven_zip_archive
Extracts a 7-zip compatible archive (iso, zip, 7z etc) to the specified destination directory.
Actions
-
:extract
- Extract a 7-zip compatible archive
Attribute Parameters
-
path
- Name attribute. The destination to extract to. -
source
- The file path to the archive to extract. -
overwrite
- Defaults to false. If true, the destination files will be overwritten. -
checksum
- The archive file checksum.
Examples
Extract 7-zip source files to C:\seven_zip_source
.
seven_zip_archive 'seven_zip_source' do path 'C:\seven_zip_source' source 'http://www.7-zip.org/a/7z1514-src.7z' overwrite true checksum '3713aed72728eae8f6649e4803eba0b3676785200c76df6269034c520df4bbd5' end
Usage
default
Downloads and installs 7-zip.
License & Authors
- Author:: Seth Chisamore (schisamo@chef.io)
- Author:: Shawn Neal (sneal@sneal.net)
Copyright:: 2011-2016, Chef Software, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
seven_zip Cookbook CHANGELOG
This file is used to list changes made in each version of the seven_zip cookbook.
v2.0.0
- Upgrade to 7-Zip 15.14.
- 7-Zip now installed to the default MSI location by default.
- 7z.exe is located using the Windows registry unless the home attribute is explicitly set.
- 7-Zip is only added to the Windows PATH if the syspath attribute is set.
- Installation idempotence check was fixed, package name was corrected.
- TravisCI build added.
- ServerSpec tests added
- Document Archive LRWP
v1.0.2
1.0.0
- initial release
Foodcritic Metric
2.0.0 passed this metric
2.0.0 passed this metric