class Chef::Knife::SavedSearchList
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/saved_search_list.rb, line 11 def run list = Chef::DataBag.load(data_bag) rescue Net::HTTPServerException => e if e.response.code.to_i == 404 warn "\"#{data_bag}\" data bag does not exist. No saved searches could be found." else raise end ensure output format_list_for_display(list || {}) end