13 lines
209 B
Ruby
13 lines
209 B
Ruby
module MCollective
|
|
module Agent
|
|
class Fake < RPC::Agent
|
|
|
|
action "echo" do
|
|
validate :msg, String
|
|
reply[:msg] = "Hello, it is my reply: #{request[:msg]}"
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|