lib/freddy/adapters.rb in freddy-1.7.0 vs lib/freddy/adapters.rb in freddy-2.0.0
- old
+ new
@@ -1,36 +1,11 @@
# frozen_string_literal: true
+require_relative 'adapters/bunny_adapter'
+
class Freddy
module Adapters
def self.determine
- if RUBY_PLATFORM == 'java'
- require_relative 'adapters/march_hare_adapter'
- MarchHareAdapter
- else
- require_relative 'adapters/bunny_adapter'
- BunnyAdapter
- end
- end
-
- module Shared
- class Queue
- def initialize(queue)
- @queue = queue
- end
-
- def bind(*args)
- @queue.bind(*args)
- self
- end
-
- def name
- @queue.name
- end
-
- def message_count
- @queue.message_count
- end
- end
+ BunnyAdapter
end
end
end