Regarding the following lines of code, it looks like when building the attributes files for individual recipes, the proxy object is always just returning a string, regardless of what the variable actually is. This causes problems with variables like arrays, which get converted with the .to_s call in the proxy object and then just get rendered out as strings. If a variable is set as a string it should come back from the proxy object as a string and then get rendered out by handle_print_variable as appropriate.
Regarding the following lines of code, it looks like when building the attributes files for individual recipes, the proxy object is always just returning a string, regardless of what the variable actually is. This causes problems with variables like arrays, which get converted with the .to_s call in the proxy object and then just get rendered out as strings. If a variable is set as a string it should come back from the proxy object as a string and then get rendered out by handle_print_variable as appropriate.
http://github.com/auser/poolparty/blob/3e0d671b731414137d80cac989989f5f8182ca89/lib/dependency_resolvers/chef.rb#L164 http://github.com/auser/poolparty/blob/3e0d671b731414137d80cac989989f5f8182ca89/lib/dependency_resolvers/proxy_object.rb#L35