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