lib/hoth/transport.rb in hoth-0.3.1 vs lib/hoth/transport.rb in hoth-0.3.2.beta1
- old
+ new
@@ -1,10 +1,11 @@
require 'hoth/transport/base'
require 'hoth/transport/http'
require 'hoth/transport/https'
require 'hoth/transport/bert'
require 'hoth/transport/workling'
+require 'hoth/transport/beanstalkd'
require 'hoth/encoding/json'
require 'hoth/encoding/no_op'
module Hoth
@@ -23,10 +24,15 @@
},
:https => :json_via_https,
:workling => {
:transport_class => Transport::Workling
+ },
+
+ :beanstalkd => {
+ :transport_class => Transport::Beanstalkd,
+ :encoder => Encoding::Json
}
}
class <<self
def create(transport_name, service)
@@ -45,6 +51,6 @@
end
end
end
end
-end
\ No newline at end of file
+end