1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[compute|Ecloud] Ecloud should not show up as a valid provider when not providing credentials

This commit is contained in:
Eugene Howe 2012-08-16 10:22:45 -04:00
parent 3a19598730
commit f3e60762e8
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,10 @@
class Ecloud < Fog::Bin
class << self
def available?
Fog::Ecloud::ECLOUD_OPTIONS.all? {|requirement| Fog.credentials.include?(requirement)}
end
def class_for(key)
case key
when :compute

View file

@ -9,3 +9,9 @@ module Fog
end
end
module Fog
module Ecloud
ECLOUD_OPTIONS = [:ecloud_authentication_method]
end
end