mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix availability check after providers fixes
This commit is contained in:
parent
c673c28b16
commit
9591b3f7a2
2 changed files with 6 additions and 2 deletions
|
@ -3,6 +3,10 @@ require 'fog/core/credentials'
|
|||
module Fog
|
||||
class << self
|
||||
|
||||
def providers
|
||||
@providers.select {|provider| eval("::#{provider.to_s.split('::').last}").available?}
|
||||
end
|
||||
|
||||
def modules
|
||||
[
|
||||
::Vcloud
|
||||
|
|
|
@ -13,7 +13,7 @@ class AWS < Fog::Bin
|
|||
Fog::AWS::ELB
|
||||
when :iam
|
||||
Fog::AWS::IAM
|
||||
when :sdb
|
||||
when :sdb, :simpledb
|
||||
Fog::AWS::SimpleDB
|
||||
when :ses
|
||||
Fog::AWS::SES
|
||||
|
@ -48,7 +48,7 @@ class AWS < Fog::Bin
|
|||
Fog::AWS::IAM.new
|
||||
when :eu_storage
|
||||
Fog::Storage.new(:provider => 'AWS', :region => 'eu-west-1')
|
||||
when :sdb
|
||||
when :sdb, :simpledb
|
||||
Fog::AWS::SimpleDB.new
|
||||
when :ses
|
||||
Fog::AWS::SES.new
|
||||
|
|
Loading…
Reference in a new issue