module MagicPipe::Transports

Public Class Methods

lookup(type) click to toggle source
# File lib/magic_pipe/transports.rb, line 3
def self.lookup(type)
  case type
  when :https then Https
  when :sqs then Sqs
  when :log then Log
  when :debug then Debug
  when Array then Multi
  when Class then type
  else
    raise ConfigurationError, "Unknown MagicPipe::Transports type: '#{type}'."
  end
end