summaryrefslogtreecommitdiff
path: root/lib/chef/application/windows_service_manager.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/application/windows_service_manager.rb')
-rw-r--r--lib/chef/application/windows_service_manager.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/application/windows_service_manager.rb b/lib/chef/application/windows_service_manager.rb
index 7a89766cb4..129e3f5ee3 100644
--- a/lib/chef/application/windows_service_manager.rb
+++ b/lib/chef/application/windows_service_manager.rb
@@ -67,7 +67,7 @@ class Chef
:long => "--version",
:description => "Show chef version",
:boolean => true,
- :proc => lambda {|v| puts "Chef: #{::Chef::VERSION}"},
+ :proc => lambda { |v| puts "Chef: #{::Chef::VERSION}" },
:exit => 0
def initialize(service_options)
@@ -169,7 +169,7 @@ class Chef
return ::Win32::Service.exists?(@service_name)
end
- def take_action(action=nil, desired_state=nil)
+ def take_action(action = nil, desired_state = nil)
if service_exists?
if current_state != desired_state
::Win32::Service.send(action, @service_name)
@@ -196,7 +196,6 @@ class Chef
sleep 1
end
end
-
end
end
end