2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-12-06 14:45:20 +00:00
|
|
|
require 'xmlrpc/client'
|
|
|
|
module XMLRPC
|
|
|
|
class Client
|
|
|
|
def call(*args)
|
|
|
|
# raise args.inspect
|
|
|
|
case
|
|
|
|
when args.first == 'get_status'
|
|
|
|
{'client_count' => 1, 'count_new_task' => 2, 'count_build_task' => 3}
|
|
|
|
else; 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|