# File lib/fog/bin/ecloud.rb, line 17 def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :compute Fog::Logger.warning("Ecloud[:compute] is not recommended, use Compute[:ecloud] for portability") Fog::Compute.new(:provider => 'Ecloud') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end
# File lib/fog/bin/ecloud.rb, line 4 def available? Fog::Ecloud::ECLOUD_OPTIONS.all? {|requirement| Fog.credentials.include?(requirement)} end
Generated with the Darkfish Rdoc Generator 2.