4 5 6 7 8 9 10 11 12 13
# File 'lib/fog/bin/slicehost.rb', line 4 def class_for(key) case key when :compute Fog::Compute::Slicehost when :dns Fog::DNS::Slicehost else raise ArgumentError, "Unrecognized service: #{key}" end end