Class: InstanceSelector::Connection
- Inherits:
-
Object
- Object
- InstanceSelector::Connection
- 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, ={}) conn = case provider when :aws Providers::AWS.new() else raise UnsupportedProviderException, "#{provider} is not a supported provider" end end |