# File lib/og/backends/sqlite.rb, line 32 def initialize(config) begin @conn = SQLite::Database.new(config[:database]) rescue => ex # gmosx: any idea how to better test this? if ex.to_s =~ /database .* does not exist/i Logger.info "Database '#{config[:database]}' not found!" SqliteBackend.create_db(config[:database], config[:user]) retry end raise end end