opscode-cookbooks/nginx — pull request #130 by koseki (2013-07-10 20:17:10+00:00)
Title: Ohai plugin does not work with source install method

source recipe rewrite node['nginx']['binary']

```ruby
node.set['nginx']['binary'] = node['nginx']['source']['sbin_path']
```

and ohai_plugin use it,

```ruby
variables(
:nginx_prefix => node['nginx']['source']['prefix'],
:nginx_bin => node['nginx']['binary']
)
```

```erb
status, stdout, stderr = run_command(:no_status_check => true, :cwd => "<%= @nginx_prefix %>", :command => "<%= @nginx_bin %> -V")
```

so nginx::source recipe must be included before nginx::ohai_plugin.