Skip to content

Instantly share code, notes, and snippets.

@andreacampi
Created July 20, 2012 06:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreacampi/3149042 to your computer and use it in GitHub Desktop.
Save andreacampi/3149042 to your computer and use it in GitHub Desktop.
knife node list all
require 'chef/knife'
module Example
class Knife
class NodeListAll < Chef::Knife::NodeList
deps do
require 'chef/knife/node_list'
end
banner "knife node list all (options)"
def run
output(format_list_for_display(Chef::Node.list))
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment