incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 1/4] * server/server.rb: load default drive on startup
Date Wed, 08 Jun 2011 15:32:47 GMT
From: David Lutterkort <lutter@redhat.com>

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

Signed-off-by: David Lutterkort <lutter@redhat.com>
---
 server/server.rb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/server/server.rb b/server/server.rb
index e332679..0cd4945 100644
--- a/server/server.rb
+++ b/server/server.rb
@@ -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
-- 
1.7.4.4


Mime
View raw message