diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-04-13 16:20:30 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-04-13 16:20:30 -0700 |
commit | 6229a4d82304e8f0efeb4fb131d11521b6462aad (patch) | |
tree | 0fac742058c7477ee4ca7e8b0fad2ef8b3f893f4 | |
parent | effbcea3d2fef55e482a1b625bca8b5b25a56816 (diff) | |
download | chef-6229a4d82304e8f0efeb4fb131d11521b6462aad.tar.gz |
make dependency fetching the default for cookbook site install
-rw-r--r-- | chef/lib/chef/knife/cookbook_site_install.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chef/lib/chef/knife/cookbook_site_install.rb b/chef/lib/chef/knife/cookbook_site_install.rb index f061580c39..40c68976df 100644 --- a/chef/lib/chef/knife/cookbook_site_install.rb +++ b/chef/lib/chef/knife/cookbook_site_install.rb @@ -32,9 +32,9 @@ class Chef banner "knife cookbook site install COOKBOOK [VERSION] (options)" category "cookbook site" - option :deps, - :short => "-d", - :long => "--dependencies", + option :no_deps, + :short => "-D", + :long => "--no-dependencies", :boolean => true, :description => "Grab dependencies automatically" @@ -93,12 +93,12 @@ class Chef end - if config[:deps] + unless config[:no_deps] md = Chef::Cookbook::Metadata.new md.from_file(File.join(@install_path, @cookbook_name, "metadata.rb")) md.dependencies.each do |cookbook, version_list| # Doesn't do versions.. yet - nv = Chef::Knife::CookbookSiteVendor.new + nv = self.class.new nv.config = config nv.name_args = [ cookbook ] nv.run |