lib/hookit/resource/service.rb in hookit-0.9.0 vs lib/hookit/resource/service.rb in hookit-0.9.2
- old
+ new
@@ -47,41 +47,41 @@
when :smf
run_command! "svcadm enable -s #{"-r" if recursive} #{service_name}"
when :runit
run_command! "sv start #{service_name}"
else
- Hookit::Error::UnsupportedOption, "Unsupported init schema '#{init}'"
+ Hookit::Error::UnsupportedOption "Unsupported init schema '#{init}'"
end
end
def disable!
case init
when :smf
run_command! "svcadm disable -s #{service_name}"
when :runit
run_command! "sv stop #{service_name}"
else
- Hookit::Error::UnsupportedOption, "Unsupported init schema '#{init}'"
+ Hookit::Error::UnsupportedOption "Unsupported init schema '#{init}'"
end
end
def restart!
case init
when :smf
run_command! "svcadm restart #{service_name}"
when :runit
disable!; enable!
else
- Hookit::Error::UnsupportedOption, "Unsupported init schema '#{init}'"
+ Hookit::Error::UnsupportedOption "Unsupported init schema '#{init}'"
end
end
def reload!
case init
when :smf
run_command! "svcadm refresh #{service_name}"
else
- Hookit::Error::UnsupportedOption, "Unsupported init schema '#{init}'"
+ Hookit::Error::UnsupportedOption "Unsupported init schema '#{init}'"
end
end
end
end
\ No newline at end of file