]> git.cworth.org Git - sup/blobdiff - bin/sup
use rsync instead of ssh for webpage transfers, etc
[sup] / bin / sup
diff --git a/bin/sup b/bin/sup
index f536da69eefdd3f9a85e1d0c1c2e689fe0071054..523c685fcf49da16c984df58a4648e69743f75d2 100644 (file)
--- a/bin/sup
+++ b/bin/sup
@@ -7,7 +7,7 @@ require 'fileutils'
 require 'trollop'
 require "sup"
 
-BIN_VERSION = "git"
+BIN_VERSION = "0.5"
 
 unless Redwood::VERSION == BIN_VERSION
   $stderr.puts <<EOS
@@ -39,6 +39,12 @@ EOS
   opt :compose, "Compose message to this recipient upon startup", :type => String
 end
 
+Redwood::HookManager.register "startup", <<EOS
+Executes at startup
+No variables.
+No return value.
+EOS
+
 if $opts[:list_hooks]
   Redwood::HookManager.print_hooks
   exit
@@ -128,6 +134,8 @@ begin
     Index.add_source SentManager.new_source
   end
 
+  HookManager.run "startup"
+
   log "starting curses"
   start_cursing