From 658d44200115e180cf1e154f53e44d2aab4efe46 Mon Sep 17 00:00:00 2001 From: Ari Lerner Date: Thu, 28 May 2009 08:37:50 -0700 Subject: [PATCH] Checkin --- lib/troph/messaging/hive.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/troph/messaging/hive.rb b/lib/troph/messaging/hive.rb index eae40c5..093b820 100644 --- a/lib/troph/messaging/hive.rb +++ b/lib/troph/messaging/hive.rb @@ -13,6 +13,10 @@ def self.bees end # TODO: Add availability of the bees here + # Setup the bees in the hive + # + # This sets up the periodic blocks from within the bees + # and binds and subscribes the bees def self.setup_bees bees.each do |bee| bee.setup_periodic_blocks @@ -26,8 +30,8 @@ def self.setup_bees end end - def self.start - load_hive + def self.start(base_dir=Dir.pwd) + load_hive(base_dir) setup_bees end