summaryrefslogtreecommitdiff
path: root/app/models/packages/debian/group_distribution.rb
blob: dba38c1b538bc1e7e3281e25f5bc70f7fbb79298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

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

  include Packages::Debian::Distribution

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