This method allows to store things into database based on current driver and provider.
# File lib/cimi/helpers/database_helper.rb, line 40 def current_db Deltacloud::Database::Provider.lookup end
# File lib/cimi/helpers/database_helper.rb, line 32 def current_provider Thread.current[:provider] || ENV['API_PROVIDER'] || 'default' end
# File lib/cimi/helpers/database_helper.rb, line 27 def provides?(entity) return true if DATABASE_COLLECTIONS.include? entity return false end