cookbooks/nginx — pull request #5 by dmytro (2012-09-07 02:20:36+00:00)
Title: [COOK-1625] Workaround for missing CPU attribute

Re-creating pull request to point to qa branch.

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.