Sha256: 4c8492c2fe371b694e6e6f0e13f7a42f5e7affc1f874650b15c1c4b2d739eea6

Contents?: true

Size: 381 Bytes

Versions: 18

Compression:

Stored size: 381 Bytes

Contents

module InstanceSelector
  class UnsupportedProviderException < Exception; end;

  class Connection
    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
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
instance_selector-0.0.19 lib/instance_selector/connection.rb
instance_selector-0.0.18 lib/instance_selector/connection.rb
instance_selector-0.0.17 lib/instance_selector/connection.rb
instance_selector-0.0.16 lib/instance_selector/connection.rb
instance_selector-0.0.15 lib/instance_selector/connection.rb
instance_selector-0.0.14 lib/instance_selector/connection.rb
instance_selector-0.0.13 lib/instance_selector/connection.rb
instance_selector-0.0.12 lib/instance_selector/connection.rb
instance_selector-0.0.11 lib/instance_selector/connection.rb
instance_selector-0.0.10 lib/instance_selector/connection.rb
instance_selector-0.0.9 lib/instance_selector/connection.rb
instance_selector-0.0.8 lib/instance_selector/connection.rb
instance_selector-0.0.7 lib/instance_selector/connection.rb
instance_selector-0.0.5 lib/instance_selector/connection.rb
instance_selector-0.0.4 lib/instance_selector/connection.rb
instance_selector-0.0.3 lib/instance_selector/connection.rb
instance_selector-0.0.2 lib/instance_selector/connection.rb
instance_selector-0.0.1 lib/instance_selector/connection.rb