-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Dummy Adapter for use in development
- Loading branch information
Rahoul Baruah
committed
Jun 24, 2009
1 parent
495f797
commit 0234bf5
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require "rubygems" | ||
|
||
class DummyAdapter < Warren::Queue | ||
def self.publish queue_name, payload, &blk | ||
puts "publishing #{payload.inspect} to #{queue_name}" | ||
end | ||
|
||
def self.subscribe queue_name, &block | ||
puts "subscribing to #{queue_name}" | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters