initial import

This commit is contained in:
2009-12-10 20:45:56 +02:00
commit 14f518ce91
44 changed files with 1867 additions and 0 deletions

18
init/lib/skyhook/utils.rb Normal file
View File

@@ -0,0 +1,18 @@
# utility methods
def shell(*args)
if $debug.nil? || $debug > 1
send(:system, *args)
else
puts "DEBUG: " + args.join(" ")
end
end
def write_status(status)
case status
when 1
shell "echo '1' > #{$status_file}"
when 0
shell "rm #{$status_file}"
end
end