If we set the attribute, this can just be: 

```ruby
@hostsfile_path ||= node['hostsfile']['path'] || case node['platform_family']
```