Class: InstanceSelector::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/instance_selector/connection.rb

Class Method Summary collapse

Class Method Details

.factory(provider, options = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/instance_selector/connection.rb', line 5

def self.factory(provider, options={})
  conn = case provider
         when :aws
           Providers::AWS.new(options)
         else
           raise UnsupportedProviderException, "#{provider} is not a supported provider"
         end
end