Class: Chef::Knife::Inspect
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::Inspect
- Defined in:
- lib/chef/knife/inspect.rb
Constant Summary collapse
- CHECKLISTS =
%w(Cookbooks DataBags DataBagItems Environments Roles)
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/chef/knife/inspect.rb', line 21 def run results = checklists_to_run.map do |checklist| ::HealthInspector::Checklists.const_get(checklist).run(self) end exit !results.include?(false) end |