cookbook 'fetch', '~> 3.0.2'
fetch (7) Versions 3.0.2 Follow0
Installs/Configures fetch
cookbook 'fetch', '~> 3.0.2', :supermarket
knife supermarket install fetch
knife supermarket 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
: gzip -
download_to
: By default, to Chef's temp download directory. Can be changed to wherever. -
extract
: defaults totrue
-
extract_to
: where to unpack the archive -
strip
: 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.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
3.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.0.2 failed this metric
FC016: LWRP does not declare a default action: /tmp/54d862e16046fea50ab34870/fetch/resources/default.rb:1
FC064: Ensure issues_url is set in metadata: /tmp/54d862e16046fea50ab34870/fetch/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/54d862e16046fea50ab34870/fetch/metadata.rb:1
Testing File Metric
3.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
3.0.2 failed this metric
3.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.0.2 failed this metric
FC016: LWRP does not declare a default action: /tmp/54d862e16046fea50ab34870/fetch/resources/default.rb:1
FC064: Ensure issues_url is set in metadata: /tmp/54d862e16046fea50ab34870/fetch/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/54d862e16046fea50ab34870/fetch/metadata.rb:1
Testing File Metric
3.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
3.0.2 failed this metric
FC064: Ensure issues_url is set in metadata: /tmp/54d862e16046fea50ab34870/fetch/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/54d862e16046fea50ab34870/fetch/metadata.rb:1
3.0.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file