Module: YetisNode::Cmd::Base
- Included in:
- YetisNode::Client
- Defined in:
- lib/yetis_node/cmd/base.rb
Instance Method Summary collapse
Instance Method Details
#invoke(method, prefix, args = []) ⇒ Object
6 7 8 |
# File 'lib/yetis_node/cmd/base.rb', line 6 def invoke(method, prefix, args = []) rpc_send(*([prefix] + method.to_s.split("_") + args.compact)) end |
#rpc_send(*args) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/yetis_node/cmd/base.rb', line 10 def rpc_send(*args) begin xml_rpc.call_async('di', 'yeti', *args) rescue XMLRPC::FaultException => e raise Error.new(e.) end end |