commit f9b4ff9ef7c241720f3c18bb0562693dd8f58aab
parent 7433ca598a30e01cb2e1ac8dd4093f2e40a3a60f
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Tue, 9 Nov 2010 13:50:19 -0800
ensure index directory is created
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -49,6 +49,7 @@ EOS
def initialize dir=BASE_DIR
@dir = dir
+ FileUtils.mkdir_p @dir
@lock = Lockfile.new lockfile, :retries => 0, :max_age => nil
@sync_worker = nil
@sync_queue = Queue.new