Sha256: 0aba985a805d812daf0d4d4608df35a3ece9ffa4043b26287b9254e912b37391
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
module BastionKatello class Engine < ::Rails::Engine isolate_namespace BastionKatello initializer 'bastion.assets_dispatcher', :before => :build_middleware_stack do |app| app.middleware.use ::ActionDispatch::Static, "#{BastionKatello::Engine.root}/app/assets/javascripts/bastion_katello" end config.to_prepare do consumer_cert_rpm = 'katello-ca-consumer-latest.noarch.rpm' consumer_cert_rpm = SETTINGS[:katello][:consumer_cert_rpm] if SETTINGS.key?(:katello) db_migrated = !Foreman.in_setup_db_rake? && ActiveRecord::Base.connection.table_exists?(Setting.table_name) Bastion.register_plugin( :name => 'bastion_katello', :stylesheet => 'bastion_katello/bastion_katello', :pages => %w( activation_keys content_credentials content_hosts debs docker_tags files errata packages lifecycle_environments products sync_plans host_collections katello_tasks select_organization ), :config_generator => lambda do { 'consumerCertRPM' => consumer_cert_rpm, 'defaultDownloadPolicy' => !Foreman.in_rake? && db_migrated && Setting['default_download_policy'], 'remoteExecutionPresent' => true, 'hostToolingEnabled' => true, } end ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems