Sha256: 56be26f403b80697acf9f531670d5349b14578b6d909ed56e7bdf3037328904c
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 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) 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.0 | templates/console.rb.tt |