cookbook 'fetch', '= 3.0.1', :supermarket
fetch (7) Versions 3.0.1 Follow0
Installs/Configures fetch
cookbook 'fetch', '= 3.0.1'
knife cookbook site install fetch
knife cookbook site download fetch
This cookbook was written primarily to automate several steps I often have to do in recipes:
- Fetch some archive
- Extract it somewhere
- Symlink it elsewhere
All these steps are wrapped in a neat LWRP.
Supported archive types
- gzip
Usage
See the test.rb
recipe for examples.
LWRP options
archive_type
: gzipdownload_to
: By default, to Chef's temp download directory. Can be changed to wherever.extract
: defaults totrue
extract_to
: where to unpack the archivestrip
: defaults totrue
. Remove the first-level directory from the archive.symlink
: defaults totrue
symlink_to
: where to symlink it
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Jean-Francois Theroux me@failshell.io
License: Apache version 2
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
CHANGELOG for fetch
This file is used to list changes made in each version of fetch.
0.1.0:
- Initial release of fetch
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
3.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Foodcritic Metric
3.0.1 failed this metric
FC016: LWRP does not declare a default action: /tmp/935d29e11402ad72b50ed6e5/fetch/resources/default.rb:1
FC064: Ensure issues_url is set in metadata: /tmp/935d29e11402ad72b50ed6e5/fetch/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/935d29e11402ad72b50ed6e5/fetch/metadata.rb:1
3.0.1 failed this metric
3.0.1 failed this metric
FC016: LWRP does not declare a default action: /tmp/935d29e11402ad72b50ed6e5/fetch/resources/default.rb:1
FC064: Ensure issues_url is set in metadata: /tmp/935d29e11402ad72b50ed6e5/fetch/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/935d29e11402ad72b50ed6e5/fetch/metadata.rb:1