Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

poise-archive (9) Versions 1.0.0

A Chef cookbook for unpacking file archives like tar and zip.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'poise-archive', '= 1.0.0'
cookbook 'poise-archive', '= 1.0.0', :supermarket
knife cookbook site install poise-archive
knife cookbook site download poise-archive
README
Dependencies
Changelog
Quality

Poise-Archive Cookbook

Build Status Gem Version Cookbook Version Coverage Gemnasium License

A Chef cookbook to unpack file archives like TAR and ZIP files.

NOTE: ZIP files are not supported yet, stay tuned.

Quick Start

To download an unpack and archive:

poise_archive 'myapp.tgz' do
  action :nothing
  destination '/opt/myapp'
end

remote_file "#{Chef::Config[:file_cache_path]}/myapp.tgz" do
  source 'https://example.com/myapp.tgz'
  notifies :unpack, 'poise_archive[myapp.tgz]', :immediately
end

Resources

poise_archive

The poise_archive resource unpacks file archives.

poise_archive '/tmp/myapp-1.2.0.tar' do
  destination '/srv/myapp-1.2.0'
end

Actions

  • :unpack – Unpack the archive. (default)

Properties

  • path – Path to the archive. If relative, it is taken as a file inside Chef::Config[:file_cache_path]. (name attribute)
  • destination – Path to unpack the archive to. If not specified, the path of the archive without the file extension is used. (default: auto)
  • group – Group to run the unpack as.
  • keep_existing – Keep existing files in the destination directory when unpacking. (default: false)
  • strip_components – Number of intermediary directories to skip when unpacking. Works like GNU tar's --strip-components. (default: 1)
  • user – User to run the unpack as.

Sponsors

Development sponsored by Bloomberg.

The Poise test server infrastructure is sponsored by Rackspace.

License

Copyright 2016, Noah Kantrowitz

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.

Poise-Archive Changelog

v1.0.0

  • Initial release!

Foodcritic Metric
            

1.0.0 passed this metric