examples/kafka-jvm/chef/cookbooks/zookeeper/libraries/default.rb
# Zookeeper uses a Java properties file style of configuration. This helper
# method will render a hash in that style.
Zookeeper uses a Java properties file style of configuration. This helper
method will render a hash in that style.
Zookeeper uses a Java properties file style of configuration . This helper method will render a hash in that style .
def render_zk_config(config, lead=nil)
      rendered = ""
      config.each_pair do |k,v|
        if lead
          rendered << "#{lead}."
        end
        if v.is_a?(Hash)
          rendered << render_zk_config(v, k)
        else
          rendered << "#{k}=#{v}\n"
        end
      end
      return rendered
    end
def render_zk_config ( config , lead = nil ) rendered = "" config . each_pair do | k , v | if lead rendered << "#{lead}." end if v . is_a? ( Hash ) rendered << render_zk_config ( v , k ) else rendered << "#{k}=#{v}\n" end end return rendered end
Zookeeper uses a Java properties file style of configuration.
Zookeeper uses a Java properties file style of configuration .
config
<not_specific>
lead
<not_specific>