realityforge/chef-kibana — pull request #19 by rafaelmagu (2014-02-23 21:49:17+00:00)
Title: Forcing string comparison to ensure check works

node['apache']['listen_ports'] is an array of strings, so my earlier fix wasn't working properly. This does the trick:

```
This is the chef-shell.
Chef Version: 11.8.2
http://www.opscode.com/chef
http://wiki.opscode.com/display/chef/Home

run `help' for help, `exit' or ^D to quit.

Ohai2u user@host.domain.tld!
chef > node['apache']['listen_ports']
=> ["80"]
chef > node['kibana']['apache']['port']
=> 80
chef > node['apache']['listen_ports'].include?(node['kibana']['apache']['port'])
=> false
chef > node['apache']['listen_ports'].include?(node['kibana']['apache']['port'].to_s)
=> true
chef >
```