2021-03-08 18:12:59 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Packages::Debian::GroupDistribution < ApplicationRecord
|
|
|
|
def self.container_type
|
|
|
|
:group
|
|
|
|
end
|
|
|
|
|
|
|
|
include Packages::Debian::Distribution
|
2021-06-08 01:23:25 +05:30
|
|
|
|
|
|
|
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
|
2021-03-08 18:12:59 +05:30
|
|
|
end
|