fuel-astute/mcagents/fake.rb

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