cookbooks/nginx — pull request #4 by dmytro (2012-09-06 09:44:23+00:00)
Title: [COOK-1625] Workaround for missing CPU attribute

When run on Darwin OS (MacOSX) during loading cookbbook Nginx fails becuase of missing attribute cpu.

CPU attribute is missing because Darwin does not have CPU plugin for Ohai.

Generated at 2012-09-06 18:11:55 +0900
2 ArgumentError: Attribute cpu is not defined!

Adding 'rescue 1' will allow to prevent cookbook from failing. On OS's when Ohai plugin does not exist, will assume node has single CPU.