Sha256: cf1d1d67e4850291ff37b47aaac84c161cd1b30f39e1e528fb9ee6670ddacef4
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
module InstanceSelector class UnsupportedProviderException < RuntimeError; end # Provider factory for different cloud APIs class Provider def self.factory(provider, options = {}) provider = :override if ENV['HOSTS'] case provider when :aws Providers::AWS.new(options) when :override Providers::Override.new(options) else raise UnsupportedProviderException, "#{provider} is not a supported provider" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
instance_selector-0.3.0 | lib/instance_selector/provider.rb |