summaryrefslogtreecommitdiff
path: root/chef/lib/chef/application
diff options
context:
space:
mode:
authorChris Roberts <chrisroberts.code@gmail.com>2012-05-11 14:51:06 -0700
committerBryan McLellan <btm@opscode.com>2012-07-26 11:31:25 -0700
commiteab92691df5665994c888f3727eecc3577fb5f69 (patch)
tree9a5414ead047d6338fd669cf2e23f510b30f5557 /chef/lib/chef/application
parent43e2a3851bac0fa587ec71f594c3c9ea2cdfec1b (diff)
downloadchef-eab92691df5665994c888f3727eecc3577fb5f69.tar.gz
Converge via fork
Diffstat (limited to 'chef/lib/chef/application')
-rw-r--r--chef/lib/chef/application/client.rb6
-rw-r--r--chef/lib/chef/application/solo.rb8
2 files changed, 13 insertions, 1 deletions
diff --git a/chef/lib/chef/application/client.rb b/chef/lib/chef/application/client.rb
index dffae827ac..e9408ce5fc 100644
--- a/chef/lib/chef/application/client.rb
+++ b/chef/lib/chef/application/client.rb
@@ -169,6 +169,12 @@ class Chef::Application::Client < Chef::Application
:long => '--why-run',
:description => 'Enable whyrun mode',
:boolean => true
+
+ option :client_fork,
+ :short => "-f",
+ :long => "--fork",
+ :description => "Fork client",
+ :boolean => true
attr_reader :chef_client_json
diff --git a/chef/lib/chef/application/solo.rb b/chef/lib/chef/application/solo.rb
index 93b7f0bb34..7ec6c36e76 100644
--- a/chef/lib/chef/application/solo.rb
+++ b/chef/lib/chef/application/solo.rb
@@ -132,7 +132,13 @@ class Chef::Application::Solo < Chef::Application
Chef::RunList::RunListItem.new(item)
}
}
-
+
+ option :client_fork,
+ :short => "-f",
+ :long => "--fork",
+ :description => "Fork client",
+ :boolean => true
+
option :why_run,
:short => '-W',
:long => '--why-run',