engines/bastion_katello/lib/bastion_katello/engine.rb in katello-2.2.2 vs engines/bastion_katello/lib/bastion_katello/engine.rb in katello-2.4.0.rc1
- old
+ new
@@ -13,30 +13,35 @@
app.config.less.paths << "#{BastionKatello::Engine.root}/app/assets/stylesheets/bastion_katello"
end
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)
+
Bastion.register_plugin(
:name => 'bastion_katello',
:javascript => 'bastion_katello/bastion_katello',
:stylesheet => 'bastion_katello/bastion_katello',
:pages => %w(
activation_keys
content_hosts
content_views
docker_tags
errata
+ packages
gpg_keys
lifecycle_environments
products
+ puppet_modules
subscriptions
sync_plans
host_collections
katello_tasks
select_organization
),
:config => {
- 'consumerCertRPM' => Katello.config.consumer_cert_rpm
+ 'consumerCertRPM' => consumer_cert_rpm
}
)
end
end
end