Skip to content

Instantly share code, notes, and snippets.

@danielsdeleo
Created December 21, 2012 16:22
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 danielsdeleo/18e7bb1d74075c47f750 to your computer and use it in GitHub Desktop.
Save danielsdeleo/18e7bb1d74075c47f750 to your computer and use it in GitHub Desktop.
Chef::Node sort in 0.10.6
This is shef, the Chef shell.
Chef Version: 0.10.6
http://www.opscode.com/chef
http://wiki.opscode.com/display/chef/Home
run `help' for help, `exit' or ^D to quit.
Ohai2u ddeleo@lorentz.local!
chef > n1 = Chef::Node.new
=> node[]
chef > n1.name("a")
=> "a"
chef > n2 = Chef::Node.new
=> node[]
chef > n2.name("z")
=> "z"
chef > [n1, n2].sort
ArgumentError: comparison of Chef::Node with Chef::Node failed
from (irb):5:in `sort'
from (irb):5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment