Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcspadden/19cd0e53acd0926078b2 to your computer and use it in GitHub Desktop.
Save nmcspadden/19cd0e53acd0926078b2 to your computer and use it in GitHub Desktop.
Nick-Tech:chef-repo nmcspadden$ chef-shell -c /etc/chef/client.rb
loading configuration: /etc/chef/client.rb
Session type: standalone
Loading......done.
This is the chef-shell.
Chef Version: 12.0.3
http://www.opscode.com/chef
http://docs.opscode.com/
run `help' for help, `exit' or ^D to quit.
Ohai2u nmcspadden@!
chef > puts node['cpe']['hardware']
NoMethodError: undefined method `[]' for nil:NilClass
from (irb):1
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/shell.rb:75:in `block in start'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/shell.rb:74:in `catch'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/shell.rb:74:in `start'
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/bin/chef-shell:37:in `<top (required)>'
from /opt/chefdk/embedded/bin/chef-shell:23:in `load'
from /opt/chefdk/embedded/bin/chef-shell:23:in `<main>'
chef >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment