Sha256: e1f1da6229b93bdee47010015039820b217087668e647704037c3c0f0718d631

Contents?: true

Size: 1.48 KB

Versions: 9

Compression:

Stored size: 1.48 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

    initializer "bastion.assets.paths", :group => :all do |app|
      app.middleware.use ::ActionDispatch::Static, "#{BastionKatello::Engine.root}/app/assets/javascripts/bastion_katello"

      if defined? Less::Rails
        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' => consumer_cert_rpm
        }
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.4 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.3 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.2 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.1 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.0 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.0.rc3 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.0.rc2 engines/bastion_katello/lib/bastion_katello/engine.rb
katello-2.4.0.rc1 engines/bastion_katello/lib/bastion_katello/engine.rb