lib/dbcp/environment.rb in dbcp-0.0.1 vs lib/dbcp/environment.rb in dbcp-0.1.0
- old
+ new
@@ -2,10 +2,11 @@
class EnvironmentNotFound < StandardError; end
class ExecutionError < StandardError; end
class Environment
ENVIRONMENT_PROVIDERS = [
- DatabaseYamlEnvironmentProvider.new('config/database.yml')
+ DatabaseYamlEnvironmentProvider.new('config/database.yml'),
+ UriEnvironmentProvider.new
]
class << self
def find(environment_name)
ENVIRONMENT_PROVIDERS.each do |provider|