Skip to content

Commit

Permalink
removing daemonize option for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamont Granquist committed Nov 1, 2012
1 parent 29173a2 commit 5a75962
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions lib/chef/application/client.rb
Expand Up @@ -81,11 +81,13 @@ class Chef::Application::Client < Chef::Application
:description => "Group to set privilege to",
:proc => nil

option :daemonize,
:short => "-d",
:long => "--daemonize",
:description => "Daemonize the process",
:proc => lambda { |p| true }
unless Chef::Platform.windows?
option :daemonize,
:short => "-d",
:long => "--daemonize",
:description => "Daemonize the process",
:proc => lambda { |p| true }
end

option :pid_file,
:short => "-P PID_FILE",
Expand Down
12 changes: 7 additions & 5 deletions lib/chef/application/solo.rb
Expand Up @@ -78,11 +78,13 @@ class Chef::Application::Solo < Chef::Application
:description => "Group to set privilege to",
:proc => nil

option :daemonize,
:short => "-d",
:long => "--daemonize",
:description => "Daemonize the process",
:proc => lambda { |p| true }
unless Chef::Platform.windows?
option :daemonize,
:short => "-d",
:long => "--daemonize",
:description => "Daemonize the process",
:proc => lambda { |p| true }
end

option :interval,
:short => "-i SECONDS",
Expand Down

0 comments on commit 5a75962

Please sign in to comment.