Reputation: 41939
Where does knife cookbook create <name of cookbook>
create the cookbook?
C:\Users\Kevin\cookbooks>knife cookbook create foo
** Creating cookbook foo
** Creating README for cookbook: foo
** Creating CHANGELOG for cookbook: foo
** Creating metadata for cookbook: foo
C:\Users\Kevin\cookbooks>dir
03/24/2014 10:38 AM <DIR> .
03/24/2014 10:38 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 57,811,804,160 bytes free
I checked C:\users\kevin\.chef
, but there's no cookbooks there either.
Upvotes: 2
Views: 887
Reputation: 7268
There may be more that 1 knife.rb file. first write the command
"knife configure"
It will ask question..
Overwrite /root/chef-repo/.chef/knife.rb? (Y/N) give answer as "n"
So you can get correct location of knife.rb.
So location /root/chef-repo/.chef/knife.rb
You can check the cookbook_path in knife.rb file.
Upvotes: 0