Skip to content

Instantly share code, notes, and snippets.

@acrmp
Created October 16, 2012 17:25
Show Gist options
  • Save acrmp/3900709 to your computer and use it in GitHub Desktop.
Save acrmp/3900709 to your computer and use it in GitHub Desktop.
FC019 Dot Notation support
Chef::Log.info node[:kernel][:machine]
Chef::Log.info node[:kernel][:machine]
Chef::Log.info node.kernel.machine
$ foodcritic -t FC019 foo
FC019: Access node attributes in a consistent manner: foo/recipes/default.rb:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment