lib/perus/pinger/commands/service_stop.rb in perus-0.1.8 vs lib/perus/pinger/commands/service_stop.rb in perus-0.1.9

- old
+ new

@@ -3,10 +3,10 @@ description 'Stop the init job specified with "job". Valid values for "job" are contained in the pinger config file.' option :job, restricted: true def run - result = shell("sudo service #{option.job} stop") + result = shell("sudo service #{options.job} stop") true # shell will capture any errors end end end