class Deltacloud::Database::Provider

Public Class Methods

lookup() click to toggle source

Find the DB provider set in the environment/request

# File lib/db/provider.rb, line 31
def self.lookup
  prov = Thread.current[:provider] || ENV['API_PROVIDER'] || 'default'
  find_or_create(:driver => current_driver_name, :url => prov)
end