cookbook 'web', '~> 0.0.10', :supermarket
web (6) Versions 0.0.10 Follow3
Light weight resource to deliver archived application to your host
cookbook 'web', '~> 0.0.10'
knife supermarket install web
knife supermarket download web
Description
Light weight resource to deliver archived application to your host.
Requirements
- tar
Attributes
Usage
# fetch archive from remote host
# unpack archive in destination directory (see `base` parameter in `Resource's parameters` section)
# create symlink 'my-application' pointing to unpacked archive
web_application 'my-application' do
url 'http://some.ftp.host/my-app-v0.0.1.tar.gz'
user 'alex'
group 'users'
action :deliver
end
# delete all unpacked archives matching glob pattern
web_application 'my-application' do
pattern 'my-app*/'
user 'alex'
group 'users'
action :clean
end
# delete symlinked unpacked archive
web_application 'my-application' do
user 'alex'
group 'users'
action :delete
end
Resource's parameters
-
name
- name of symlink to point to unpacked archive -
url
- http url for application archive -
user
- owner of application files -
group
- group of applications files -
base
- directory where archive will be unpacked, default value isuser's home directory
. Archive will be unpacked inbase/apps/
directory.base/apps/name
will point to unpacked archive
Actions
-
fetch
- fetch archive from remote host and store it inbase/apps/
-
unpack
- unpack archive (seeoverride mode
section) -
symlink
- make symlink inbase/apps/
pointing to the archive unpacked -
deliver
- fetch, unpack, symlink actions successively -
delete
- delete symlinked unpacked archive -
clean
- delete all unpacked archives matching glob pattern (symlinked unpacked archive is excluded)
Override mode
When doing unpack
action if archive is already unpacked - delete current unpacked archive first. By default override
is set to true
.
web_application 'my-application' do
url 'http://some.ftp.host/my-app.tar.gz'
user 'alex'
group 'users'
override true
action :deliver
end
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.10 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.10 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
0.0.10 failed this metric
FC016: LWRP does not declare a default action: web/resources/application.rb:1
FC064: Ensure issues_url is set in metadata: web/metadata.rb:1
FC065: Ensure source_url is set in metadata: web/metadata.rb:1
FC066: Ensure chef_version is set in metadata: web/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: web/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:23
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:29
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:36
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:42
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:50
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:56
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:62
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.10 passed this metric
Publish Metric
0.0.10 passed this metric
Supported Platforms Metric
0.0.10 failed this metric
web should declare what platform(s) it supports.
Testing File Metric
0.0.10 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
Version Tag Metric
0.0.10 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 include a tag that matches this cookbook version number
0.0.10 failed this metric
0.0.10 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
0.0.10 failed this metric
FC016: LWRP does not declare a default action: web/resources/application.rb:1
FC064: Ensure issues_url is set in metadata: web/metadata.rb:1
FC065: Ensure source_url is set in metadata: web/metadata.rb:1
FC066: Ensure chef_version is set in metadata: web/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: web/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:23
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:29
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:36
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:42
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:50
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:56
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:62
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.10 passed this metric
Publish Metric
0.0.10 passed this metric
Supported Platforms Metric
0.0.10 failed this metric
web should declare what platform(s) it supports.
Testing File Metric
0.0.10 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
Version Tag Metric
0.0.10 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 include a tag that matches this cookbook version number
0.0.10 failed this metric
FC064: Ensure issues_url is set in metadata: web/metadata.rb:1
FC065: Ensure source_url is set in metadata: web/metadata.rb:1
FC066: Ensure chef_version is set in metadata: web/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: web/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:23
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:29
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:36
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:42
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:50
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:56
FC085: Resource using new_resource.updated_by_last_action to converge resource: web/providers/application.rb:62
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.10 passed this metric
Publish Metric
0.0.10 passed this metric
Supported Platforms Metric
0.0.10 failed this metric
web should declare what platform(s) it supports.
Testing File Metric
0.0.10 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
Version Tag Metric
0.0.10 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 include a tag that matches this cookbook version number
0.0.10 passed this metric
0.0.10 failed this metric
web should declare what platform(s) it supports.
Testing File Metric
0.0.10 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
Version Tag Metric
0.0.10 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 include a tag that matches this cookbook version number
0.0.10 failed this metric
0.0.10 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 include a tag that matches this cookbook version number