Sha256: 05965357dc82fccaa6e595c373b8f52147b6d4c94e137f05ceff7d9c1e43f625

Contents?: true

Size: 658 Bytes

Versions: 13

Compression:

Stored size: 658 Bytes

Contents

module Actions
  module Pulp
    module Consumer
      class GenerateApplicability < Pulp::AbstractAsyncTask
        input_format do
          param :uuids, Array
        end

        def invoke_external_task
          if input[:uuids].length == 1
            begin
              pulp_resources.consumer.regenerate_applicability_by_id(input[:uuids].first)
            rescue RestClient::ResourceNotFound
              Rails.logger.warn("Pulp consumer %s not found." % input[:uuids].first)
            end
          else
            pulp_extensions.consumer.regenerate_applicability_by_ids(input[:uuids])
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
katello-3.8.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.7.1.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.7.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.8.0 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.8.0.rc3 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.8.0.rc2 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.7.0 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.8.0.rc1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.7.0.rc2 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.7.0.rc1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.6.0 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.6.0.1.rc2 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.6.0.rc2 app/lib/actions/pulp/consumer/generate_applicability.rb