cookbook 'web', '= 0.0.6'
web (6) Versions 0.0.6 Follow3
Light weight resource to deliver archived application to your host
cookbook 'web', '= 0.0.6', :supermarket
knife supermarket install web
knife supermarket download web
Description
light weight resource to deliver web application from tarball to your host
Requirements
- tar
Attributes
Usage
web_application 'my-application' do
url 'http://some.ftp.host/my-app.tar.gz'
user 'alex'
group 'users'
action :deliver
end
web_application 'my-application' do
pattern 'my-app*/'
user 'alex'
group 'users'
action :clean
end
web_application 'my-application' do
user 'alex'
group 'users'
action :delete
end
Resource's parameters
-
name- name of symlink -
url- http url to application tarball -
user- owner of application files -
group- group of applications files -
base- directory where application tarball will be unpacked, default value isuser's home directory, so the application will be unpacked inbase/apps/directory and get symlinked asbase/apps/name
Actions
-
fetch- just fetch application tarball and store it -
unpack- unpack application tarball -
symlink- make symlink inbase/apps/to unpacked application -
deliver- fetch, unpack, symlink actions in sum -
delete- remove application directory ( resolved bynamesymlink ) -
clean- clean upoldunpacked distributives (effectively delete ALL directories inbase/appsdirectory except currently symlinked asbase/apps/name)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.