Sha256: 697fddf02a94317e88fb70563c5bed92bbe4586f7262ba623f14acd4538b3e25

Contents?: true

Size: 647 Bytes

Versions: 10

Compression:

Stored size: 647 Bytes

Contents

module Actions
  module Katello
    module Repository
      class ImportApplicability < Actions::Base
        middleware.use Actions::Middleware::ExecuteIfContentsChanged

        input_format do
          param :repo_id
          param :contents_changed
        end

        def run
          repo = ::Katello::Repository.find(input[:repo_id])
          repo.hosts_with_applicability.each do |host|
            ::Katello::EventQueue.push_event(::Katello::Events::ImportHostErrata::EVENT_TYPE, host.id)
          end
        end

        def rescue_strategy_for_self
          Dynflow::Action::Rescue::Skip
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/lib/actions/katello/repository/import_applicability.rb
katello-3.2.1 app/lib/actions/katello/repository/import_applicability.rb
katello-3.2.0 app/lib/actions/katello/repository/import_applicability.rb
katello-3.2.0.rc3 app/lib/actions/katello/repository/import_applicability.rb
katello-3.2.0.rc2 app/lib/actions/katello/repository/import_applicability.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/repository/import_applicability.rb
katello-3.2.0.rc1 app/lib/actions/katello/repository/import_applicability.rb
katello-3.1.0.1 app/lib/actions/katello/repository/import_applicability.rb
katello-3.1.0 app/lib/actions/katello/repository/import_applicability.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/repository/import_applicability.rb