Class: Aliyun
- Inherits:
-
Fog::Bin
- Object
- Fog::Bin
- Aliyun
- Defined in:
- lib/fog/bin/aliyun.rb
Class Method Summary collapse
Class Method Details
.[](service) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fog/bin/aliyun.rb', line 16 def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :storage Fog::Logger.warning('Aliyun[:storage] is not recommended, use Storage[:openstack] for portability') Fog::Storage.new(provider: 'aliyun') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end |