class Chef::Resource::ChefClientConfig
Public Instance Methods
Source
# File lib/chef/resource/chef_client_config.rb, line 331 def format_handler(handler_property) handler_data = [] handler_property.each do |handler| handler_data << "#{handler["class"]}.new(#{handler["arguments"].join(",")})" end handler_data end
Format the handler document in the way we want it presented in the client.rb file
@param [Hash] a handler property
@return [Array] Array of handler data
Source
# File lib/chef/resource/chef_client_config.rb, line 111 def string_to_symbol(prop_val) if prop_val.is_a?(String) && prop_val.start_with?(":") prop_val[1..-1].to_sym else prop_val.to_sym end end
@param [String, Symbol] prop_val the value from the property
@return [Symbol] The symbol form of the symbol-like string, string, or symbol value