2013. 12. 8. 23:28

How to get the codes of a recipe from chef server.

I was digging the way how to get the codes of a recipe from chef server. Finally I found the command:


$ knife cookbook show COOKBOOK_NAME [COOKBOOK_VERSION] [PART...] [FILE_NAME] (options)


administrator@ubuntu:~/temp$ knife cookbook show test2 latest recipes default.rb
#
# Cookbook Name:: test2
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#


Source: http://docs.opscode.com/knife_cookbook.html#id24