Chapter 09/circuit-oneops-1-master/components/cookbooks/cassandra/libraries/cassandra_util.rb
# Checks if the Log4j config directives are supported.
# Applicable only if versions of Cassandra >= 1.2 and
# has a non empty config directive map.
#
Checks if the Log4j config directives are supported.
Applicable only if versions of Cassandra >= 1.2 and
has a non empty config directive map.
Checks if the Log4j config directives are supported . Applicable only if versions of Cassandra > = 1 . 2 and has a non empty config directive map .
def log4j_directive_supported?
      ci = node.workorder.rfcCi.ciAttributes
      cfg = ci.log4j_directives if ci.has_key?("log4j_directives")
      !cfg.nil? && !cfg.empty?
    end
def log4j_directive_supported? ci = node . workorder . rfcCi . ciAttributes cfg = ci . log4j_directives if ci . has_key? ( "log4j_directives" ) ! cfg . nil? && ! cfg . empty? end
Checks if the Log4j config directives are supported.
Checks if the Log4j config directives are supported .