summaryrefslogtreecommitdiffstats
path: root/ext/bin/sleeper
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bin/sleeper')
-rwxr-xr-xext/bin/sleeper24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/bin/sleeper b/ext/bin/sleeper
index 980d66ac1..9837db2ec 100755
--- a/ext/bin/sleeper
+++ b/ext/bin/sleeper
@@ -38,20 +38,20 @@ end
debug = false
result = GetoptLong.new(
- [ "--debug", "-d", GetoptLong::NO_ARGUMENT ],
- [ "--help", "-h", GetoptLong::NO_ARGUMENT ]
+ [ "--debug", "-d", GetoptLong::NO_ARGUMENT ],
+ [ "--help", "-h", GetoptLong::NO_ARGUMENT ]
)
result.each { |opt,arg|
- case opt
- when "--help"
- puts "There is no help yet"
- exit
- when "--debug"
- debug = true
- else
- raise "Invalid option '#{opt}'"
- end
+ case opt
+ when "--help"
+ puts "There is no help yet"
+ exit
+ when "--debug"
+ debug = true
+ else
+ raise "Invalid option '#{opt}'"
+ end
}
trap(:INT) {
@@ -59,7 +59,7 @@ trap(:INT) {
}
unless debug
- daemonize()
+ daemonize()
end
# Sleep for no more than two minutes