lib/puppet_x/coi/jboss/configuration.rb
# Gets configuration value by its symbol
#
# @param key [Symbol] a key in hash
# @return [Object] configuration value
Gets configuration value by its symbol
Gets configuration value by its symbol
def config_value(key)
      @config = read if @config.nil?
      ret = nil
      unless @config.nil?
        arr = @config.map { |k, v| [k.to_s.to_sym, v] }
        hash = Hash[arr]
        ret = hash[key.to_s.to_sym]
      end
      ret
    end
def config_value ( key ) @config = read if @config . nil? ret = nil unless @config . nil? arr = @config . map { | k , v | [ k . to_s . to_sym , v ] } hash = Hash [ arr ] ret = hash [ key . to_s . to_sym ] end ret end
Gets configuration value by its symbol
Gets configuration value by its symbol
None
Object
key
a key in hash
a key in hash