This commit is contained in:
amartynov 2015-10-26 16:20:05 +03:00
parent 71f0eb779b
commit e2d49e066f
2 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,12 @@
module Provider
class ConnectionFactory
def init
def init config
end
def connection account_name
@connections[account_name]
@connections[account_name] || @from_config
end
end
end

View File

@ -1,6 +1,7 @@
require "exceptions/conflict_exception"
require "providers/base_provider"
require "db/mongo/models/provider_accounts/ec2_provider_account"
require_relative "ec2_connection_factory"
module Provider
# Provider for Amazon EC2