Sha256: ed35c14ae356eebf8794c28e7827c556c69b1ff6e8582c6fca734d68fe62564a
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
# encoding: utf-8 require 'forwardable' require 'zoomq/client' require '<%=config[:name]%>/protocol' module <%=config[:constant_name]%> class Client extend Forwardable def initialize(zookeeper, log) @client = ZooMQ::Client.new(<%=config[:name].inspect%>, zookeeper, log) end def_delegators :@client, :servers def ping request = PingRequest.new @client.handle(request) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zoomq-0.1.1 | templates/client.rb.tt |
zoomq-0.1.0 | templates/client.rb.tt |