From 6229a4d82304e8f0efeb4fb131d11521b6462aad Mon Sep 17 00:00:00 2001 From: Daniel DeLeo Date: Wed, 13 Apr 2011 16:20:30 -0700 Subject: make dependency fetching the default for cookbook site install --- chef/lib/chef/knife/cookbook_site_install.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chef') 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 -- cgit v1.2.1