lib/katello/plugin.rb in katello-4.0.0 vs lib/katello/plugin.rb in katello-4.0.1

- old
+ new

@@ -1,11 +1,11 @@ require 'katello/permission_creator' require 'katello/repository_types.rb' require 'katello/host_status_manager.rb' # rubocop:disable Metrics/BlockLength Foreman::Plugin.register :katello do - requires_foreman '>= 2.3' + requires_foreman '>= 2.4' sub_menu :top_menu, :content_menu, :caption => N_('Content'), :icon => 'fa fa-book', :after => :monitor_menu do menu :top_menu, :red_hat_subscriptions, @@ -227,11 +227,12 @@ "/#{Katello::Util::Model.model_to_controller_path(resource)}/auto_complete_search" end apipie_documented_controllers ["#{Katello::Engine.root}/app/controllers/katello/api/v2/*.rb"] apipie_ignored_controllers %w(::Api::V2::OrganizationsController) ApipieDSL.configuration.dsl_classes_matchers.concat [ - "#{Katello::Engine.root}/app/models/katello/**/*.rb" + "#{Katello::Engine.root}/app/models/katello/**/*.rb", + "#{Katello::Engine.root}/app/lib/actions/**/*.rb" ] parameter_filter ::Host::Managed, :host_collection_ids => [], :content_facet_attributes => [:content_view_id, :lifecycle_environment_id, :content_source_id, :host, :kickstart_repository_id], @@ -411,6 +412,8 @@ precompile.concat(images) precompile.concat(vendor_images) precompile.concat(bastion_locale_files) precompile_assets(precompile) + + extend_observable_events(::Dynflow::Action.descendants.select { |klass| klass <= ::Actions::ObservableAction }.map(&:namespaced_event_names)) end