# File lib/chef/cookbook_version.rb, line 743 def self.available_versions(cookbook_name) chef_server_rest.get_rest("cookbooks/#{cookbook_name}").values.flatten rescue Net::HTTPServerException => e if e.to_s =~ /^404/ Chef::Log.error("Cannot find a cookbook named #{cookbook_name}") nil else raise end end