diff options
Diffstat (limited to 'lib/chef/application.rb')
-rw-r--r-- | lib/chef/application.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb index c1fc3a78a4..98bdedff7f 100644 --- a/lib/chef/application.rb +++ b/lib/chef/application.rb @@ -196,12 +196,17 @@ class Chef::Application end # Initializes Chef::Client instance and runs it - def run_chef_client + def run_chef_client(specific_recipes = []) Chef::Application.setup_server_connectivity + override_runlist = config[:override_runlist] + if specific_recipes.size > 0 + override_runlist ||= [] + end @chef_client = Chef::Client.new( @chef_client_json, - :override_runlist => config[:override_runlist] + :override_runlist => config[:override_runlist], + :specific_recipes => specific_recipes ) @chef_client_json = nil |