Skip to content

Commit

Permalink
add cookbook upload dependencies option to more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
btm committed May 20, 2011
1 parent 04dca91 commit 83318ea
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 5 additions & 3 deletions chef/distro/common/html/knife-cookbook.1.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion chef/distro/common/man/man1/knife-cookbook.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "KNIFE\-COOKBOOK" "1" "April 2011" "Chef 0.10.0" "Chef Manual"
.TH "KNIFE\-COOKBOOK" "1" "May 2011" "Chef 0.10.0" "Chef Manual"
.
.SH "NAME"
\fBknife\-cookbook\fR \- upload and manage chef cookbooks
Expand Down Expand Up @@ -82,6 +82,10 @@ upload all cookbooks, rather than just a single cookbook
a colon\-separated path to look for cookbooks in
.
.TP
\fB\-d\fR, \fB\-\-upload\-dependencies\fR
Uploads additional cookbooks that this cookbook lists in as dependencies in its metadata\.
.
.TP
\fB\-E\fR, \fB\-\-environment ENVIRONMENT\fR
An \fIENVIRONMENT\fR to apply the uploaded cookbooks to\. Specifying this option will cause knife to edit the \fIENVIRONMENT\fR to place a strict version constraint on the cookbook version(s) uploaded\.
.
Expand Down
3 changes: 3 additions & 0 deletions chef/distro/common/markdown/man1/knife-cookbook.mkd
Expand Up @@ -46,6 +46,9 @@ __knife cookbook upload [cookbooks...]__ _(options)_
upload all cookbooks, rather than just a single cookbook
* `-o`, `--cookbook-path path:path`:
a colon-separated path to look for cookbooks in
* `-d`, `--upload-dependencies`:
Uploads additional cookbooks that this cookbook lists in as
dependencies in its metadata.
* `-E`, `--environment ENVIRONMENT`:
An _ENVIRONMENT_ to apply the uploaded cookbooks to. Specifying this
option will cause knife to edit the _ENVIRONMENT_ to place a strict
Expand Down
2 changes: 1 addition & 1 deletion chef/lib/chef/knife/cookbook_upload.rb
Expand Up @@ -64,7 +64,7 @@ class CookbookUpload < Knife
option :depends,
:short => "-d",
:long => "--include-dependencies",
:description => "Upload dependencies also"
:description => "Also upload cookbook dependencies"

def run
config[:cookbook_path] ||= Chef::Config[:cookbook_path]
Expand Down

0 comments on commit 83318ea

Please sign in to comment.