diff --git a/lib/fog/bin/ecloud.rb b/lib/fog/bin/ecloud.rb index ad807a8f3..229e63f5f 100644 --- a/lib/fog/bin/ecloud.rb +++ b/lib/fog/bin/ecloud.rb @@ -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 diff --git a/lib/fog/ecloud.rb b/lib/fog/ecloud.rb index 3031c450e..eef8c6f29 100644 --- a/lib/fog/ecloud.rb +++ b/lib/fog/ecloud.rb @@ -9,3 +9,9 @@ module Fog end end + +module Fog + module Ecloud + ECLOUD_OPTIONS = [:ecloud_authentication_method] + end +end