group_distribution.rb 316 Bytes
Newer Older
1 2 3 4 5 6 7 8
# frozen_string_literal: true

class Packages::Debian::GroupDistribution < ApplicationRecord
  def self.container_type
    :group
  end

  include Packages::Debian::Distribution
9 10 11 12 13 14

  def packages
    Packages::Package
      .for_projects(group.all_projects.public_only)
      .with_debian_codename(codename)
  end
15
end