bin/sys_watchdog in sys_watchdog-0.1.9 vs bin/sys_watchdog in sys_watchdog-0.1.10
- old
+ new
@@ -1,11 +1,13 @@
#!/usr/bin/env ruby
require 'sys_watchdog'
+setup_commands = %w(setup start stop uninstall)
+
case ARGV[0]
-when %w(setup start stop uninstall)
+when *setup_commands
Setup.new.send ARGV[0].to_sym
when 'test'
sw = SysWatchdog.new log_file: STDOUT
sw.run once: true