debian-mirror-gitlab/app/controllers/projects/packages/infrastructure_registry_controller.rb

21 lines
608 B
Ruby
Raw Normal View History

2021-04-29 21:17:54 +05:30
# frozen_string_literal: true
module Projects
module Packages
class InfrastructureRegistryController < Projects::ApplicationController
2021-10-27 15:23:28 +05:30
include PackagesAccess
2021-04-29 21:17:54 +05:30
feature_category :infrastructure_as_code
2021-09-04 01:27:46 +05:30
def show
@package = project.packages.find(params[:id])
2022-03-02 08:16:31 +05:30
@package_files = if Feature.enabled?(:packages_installable_package_files, default_enabled: :yaml)
@package.installable_package_files.recent
else
@package.package_files.recent
end
2021-09-04 01:27:46 +05:30
end
2021-04-29 21:17:54 +05:30
end
end
end