Skip to content
Browse files

Add Echo to protocol

Change-Id: Ia38d35fd87e899fe897297c61bb03c0ac839b77c
  • Loading branch information...
1 parent 1cadff2 commit cb586649290338b78c27d5f3dc3e3f3a18195ce1 @pietern pietern committed Jun 28, 2012
View
1 warden-protocol/lib/warden/protocol.rb
@@ -22,6 +22,7 @@
require "warden/protocol/ping"
require "warden/protocol/list"
+require "warden/protocol/echo"
module Warden
module Protocol
View
1 warden-protocol/lib/warden/protocol/base.rb
@@ -25,6 +25,7 @@ module Type
Ping = 91
List = 92
+ Echo = 93
def self.generate_klass_map(suffix)
map = Hash[self.constants.map do |name|
View
13 warden-protocol/lib/warden/protocol/echo.rb
@@ -0,0 +1,13 @@
+require "warden/protocol/base"
+
+module Warden
+ module Protocol
+ class EchoRequest < BaseRequest
+ required :message, :string, 1
+ end
+
+ class EchoResponse < BaseResponse
+ required :message, :string, 1
+ end
+ end
+end

0 comments on commit cb58664

Please sign in to comment.
Something went wrong with that request. Please try again.