summaryrefslogtreecommitdiff
path: root/lib/chef/resource/service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/service.rb')
-rw-r--r--lib/chef/resource/service.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/chef/resource/service.rb b/lib/chef/resource/service.rb
index 504fdac104..5288e1b2be 100644
--- a/lib/chef/resource/service.rb
+++ b/lib/chef/resource/service.rb
@@ -29,7 +29,7 @@ class Chef
default_action :nothing
allowed_actions :enable, :disable, :start, :stop, :restart, :reload
- def initialize(name, run_context=nil)
+ def initialize(name, run_context = nil)
super
@service_name = name
@enabled = nil
@@ -48,7 +48,7 @@ class Chef
@supports = { :restart => nil, :reload => nil, :status => nil }
end
- def service_name(arg=nil)
+ def service_name(arg = nil)
set_or_return(
:service_name,
arg,
@@ -57,7 +57,7 @@ class Chef
end
# regex for match against ps -ef when !supports[:has_status] && status == nil
- def pattern(arg=nil)
+ def pattern(arg = nil)
set_or_return(
:pattern,
arg,
@@ -66,7 +66,7 @@ class Chef
end
# command to call to start service
- def start_command(arg=nil)
+ def start_command(arg = nil)
set_or_return(
:start_command,
arg,
@@ -75,7 +75,7 @@ class Chef
end
# command to call to stop service
- def stop_command(arg=nil)
+ def stop_command(arg = nil)
set_or_return(
:stop_command,
arg,
@@ -84,7 +84,7 @@ class Chef
end
# command to call to get status of service
- def status_command(arg=nil)
+ def status_command(arg = nil)
set_or_return(
:status_command,
arg,
@@ -93,7 +93,7 @@ class Chef
end
# command to call to restart service
- def restart_command(arg=nil)
+ def restart_command(arg = nil)
set_or_return(
:restart_command,
arg,
@@ -101,7 +101,7 @@ class Chef
)
end
- def reload_command(arg=nil)
+ def reload_command(arg = nil)
set_or_return(
:reload_command,
arg,
@@ -114,7 +114,7 @@ class Chef
# non-standard configurations setting this value will save having to
# specify overrides for the start_command, stop_command and
# restart_command attributes.
- def init_command(arg=nil)
+ def init_command(arg = nil)
set_or_return(
:init_command,
arg,
@@ -123,7 +123,7 @@ class Chef
end
# if the service is enabled or not
- def enabled(arg=nil)
+ def enabled(arg = nil)
set_or_return(
:enabled,
arg,
@@ -132,7 +132,7 @@ class Chef
end
# if the service is running or not
- def running(arg=nil)
+ def running(arg = nil)
set_or_return(
:running,
arg,
@@ -150,7 +150,7 @@ class Chef
# runlevel 2, stopped in 3 with priority 55 and no symlinks or
# similar for other runlevels
#
- def priority(arg=nil)
+ def priority(arg = nil)
set_or_return(
:priority,
arg,
@@ -159,7 +159,7 @@ class Chef
end
# timeout only applies to the windows service manager
- def timeout(arg=nil)
+ def timeout(arg = nil)
set_or_return(
:timeout,
arg,
@@ -167,7 +167,7 @@ class Chef
)
end
- def parameters(arg=nil)
+ def parameters(arg = nil)
set_or_return(
:parameters,
arg,
@@ -175,14 +175,14 @@ class Chef
)
end
- def run_levels(arg=nil)
+ def run_levels(arg = nil)
set_or_return(
:run_levels,
arg,
:kind_of => [ Array ] )
end
- def supports(args={})
+ def supports(args = {})
if args.is_a? Array
args.each { |arg| @supports[arg] = true }
elsif args.any?