Class: RiakCS
- Inherits:
-
Fog::Bin
- Object
- Fog::Bin
- RiakCS
- Defined in:
- lib/fog/bin/riakcs.rb
Class Method Summary collapse
Class Method Details
.[](service) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/fog/bin/riakcs.rb', line 14 def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = class_for(key) end @@connections[service] end |
.class_for(key) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/fog/bin/riakcs.rb', line 3 def class_for(key) case key when :provisioning Fog::RiakCS::Provisioning when :usage Fog::RiakCS::Usage else raise ArgumentError, "Unrecognized service: #{key}" end end |
.services ⇒ Object
21 22 23 |
# File 'lib/fog/bin/riakcs.rb', line 21 def services Fog::RiakCS.services end |