Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group_distribution.rb « debian « packages « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50c1ec9f16325a801995046dac09f14f24353b9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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)
      .with_debian_codename(codename)
  end

  def package_files
    ::Packages::PackageFile.for_package_ids(packages.select(:id))
  end
end