You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2011/06/27 14:14:20 UTC

svn commit: r1140132 - /incubator/deltacloud/trunk/server/server.rb

Author: lutter
Date: Mon Jun 27 12:14:20 2011
New Revision: 1140132

URL: http://svn.apache.org/viewvc?rev=1140132&view=rev
Log:
* server/server.rb: load default drive on startup

This makes the server fail early if there is a problem with the driver

Modified:
    incubator/deltacloud/trunk/server/server.rb

Modified: incubator/deltacloud/trunk/server/server.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/server.rb?rev=1140132&r1=1140131&r2=1140132&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/server.rb (original)
+++ incubator/deltacloud/trunk/server/server.rb Mon Jun 27 12:14:20 2011
@@ -45,6 +45,8 @@ configure do
   set :show_exceptions, false
   set :views, File.dirname(__FILE__) + '/views'
   set :public, File.dirname(__FILE__) + '/public'
+  # Try to load the driver on startup to fail early if there are issues
+  driver
 end
 
 configure :development do