bmarini / knife-inspect

Inspect your chef repo as is compares to what is on your chef server
MIT License
55 stars 13 forks source link

Option to turn off Checklists in knife.rb #33

Open docwhat opened 9 years ago

docwhat commented 9 years ago

I don't use the cookbooks/ directory in my chef-repo. I would like a way to turn off this checklist, if possible.

I can imagine other cases where people would want turn off certain Checklists.

I figured this out:

# Turn off the cookbook inspector
if Chef::Knife.const_defined?(:Inspect)
  Chef::Knife::Inspect::CHECKLISTS.delete 'Cookbooks'
end

But I'm not sure it is the recommended way. If it is, can you add it to the FAQ?

gregkare commented 9 years ago

Hi! I haven't had time to work on knife-inspect recently, there's a pull request that does what you're asking: #31

I'm going to try to review the pull requests tomorrow.