namespace :cookbook do

  # Usage: rake cookbook:enable_partnert_cookbook <cookbook_name>
  desc 'Enable the Partner Cookbook icon for a cookbook'
  task enable_partner_cookbook: :environment do
    cookbook = Cookbook.with_name(ENV['cookbook']).first!
    cookbook.partner = true
    cookbook.save
  end
end

namespace :cookbook do

  # Usage: rake cookbook:enable_partnert_cookbook <cookbook_name>
  desc 'Enable the Partner Cookbook icon for a cookbook'
  task enable_partner_cookbook: :environment do
    cookbook = Cookbook.with_name(ENV['cookbook']).first!
    cookbook.badges += [:partner]
    cookbook.save
  end
end

Update temporary rake task to use new badging interface for partner
Update temporary rake task to use new badging interface for partner
