Sha256: bdbb5651cbe2333e90e0296a8645590d42adc36d84656950de046f790046573c
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
require 'ap' require 'irb' require 'ripl' require 'forwardable' require '<%=config[:name]%>/client' Ripl::Shell.class_eval do def format_result(result) ap(result) end end module <%=config[:constant_name]%> class Console extend Forwardable def initialize $log.level = :info @client = Client.new($conf.zookeeper, $log) Ripl.start(binding: binding) end def method_missing(name, *args, &block) @client.__send__(name, *args, &block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zoomq-0.1.1 | templates/console.rb.tt |