2021-04-29 21:17:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
module Packages
|
|
|
|
class InfrastructureRegistryController < Projects::ApplicationController
|
2021-09-04 01:27:46 +05:30
|
|
|
before_action :verify_feature_enabled!
|
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])
|
|
|
|
@package_files = @package.package_files.recent
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def verify_feature_enabled!
|
|
|
|
render_404 unless Feature.enabled?(:infrastructure_registry_page, default_enabled: :yaml)
|
|
|
|
end
|
2021-04-29 21:17:54 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|