# encoding: utf-8 require 'zoomq/server' Dir[File.join(ROOT, '<%=config[:name]%>', 'server', '*.rb')].each do |f| require f end module <%=config[:constant_name]%> class Server def initialize $log.info("<%=config[:name]%>:initialize #{RUBY_DESCRIPTION}") $log.info("<%=config[:name]%>:initialize", { env: Env.mode, }) @server = ZooMQ::Server.new(<%=config[:name].inspect%>, $conf.zookeeper, $log) end def run $log.info("<%=config[:name]%>:run") @server.run end end end