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

Select Status

RSS

web (6) Versions 0.0.10

Light weight resource to deliver archived application to your host

Policyfile
Berkshelf
Knife
cookbook 'web', '~> 0.0.10', :supermarket
cookbook 'web', '~> 0.0.10'
knife supermarket install web
knife supermarket download web
README
Dependencies
Quality 17%

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 is user's home directory. Archive will be unpacked in base/apps/ directory. base/apps/name will point to unpacked archive

Actions

  • fetch - fetch archive from remote host and store it in base/apps/
  • unpack - unpack archive (see override mode section)
  • symlink - make symlink in base/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 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.10 passed this metric

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