Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] Add a startup hook.
@ 2008-02-19 10:17 Nicolas Pouillard
  2008-02-20  2:55 ` William Morgan
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Pouillard @ 2008-02-19 10:17 UTC (permalink / raw)


---
 bin/sup |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/bin/sup b/bin/sup
index 0a35fd7..0d34215 100644
--- a/bin/sup
+++ b/bin/sup
@@ -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
 
-- 
1.5.3.1.109.gacd69


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [sup-talk] [PATCH] Add a startup hook.
  2008-02-19 10:17 [sup-talk] [PATCH] Add a startup hook Nicolas Pouillard
@ 2008-02-20  2:55 ` William Morgan
  0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2008-02-20  2:55 UTC (permalink / raw)


Merged into next. Thanks!

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-20  2:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-19 10:17 [sup-talk] [PATCH] Add a startup hook Nicolas Pouillard
2008-02-20  2:55 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox