Sha256: ece40b7e5281ee2cb12167cea4263b011e42ce20b743bf4d1478cd06722d6810

Contents?: true

Size: 676 Bytes

Versions: 96

Compression:

Stored size: 676 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)
              nil
            end
          else
            pulp_extensions.consumer.regenerate_applicability_by_ids(input[:uuids])
          end
        end
      end
    end
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
katello-4.0.3 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.18.5 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.2.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.2 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.18.4 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.1.2 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.18.3.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.1.0.rc2.2 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.1.0.rc2.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.1.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.18.3 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.1.0.rc2 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.1.0.rc1.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.1.0.rc1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.0 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.0.rc3.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-4.0.0.rc3 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.18.2.1 app/lib/actions/pulp/consumer/generate_applicability.rb
katello-3.18.2 app/lib/actions/pulp/consumer/generate_applicability.rb