app/controllers/cookbooks.rb in chef-server-api-0.9.0.rc02 vs app/controllers/cookbooks.rb in chef-server-api-0.9.0

- old
+ new

@@ -60,10 +60,10 @@ end def index_recipes all_cookbooks = Array(Chef::CookbookVersion.cdb_list_latest(true)) all_cookbooks.map! do |cookbook| - cookbook.manifest["recipes"].map { |r| "#{cookbook.name}::#{r['name']}" } + cookbook.manifest["recipes"].map { |r| "#{cookbook.name}::#{File.basename(r['name'], ".rb")}" } end all_cookbooks.flatten! all_cookbooks.sort! display all_cookbooks end