Sha256: a905c6f198fad1237019b7dcdf13ccb4ad2a5a2d4cd0cc4854433146848440bc

Contents?: true

Size: 332 Bytes

Versions: 9

Compression:

Stored size: 332 Bytes

Contents

module Actions
  module Pulp
    module ExpectOneTask
      def external_task=(external_task_data)
        external_task_data = [external_task_data] unless external_task_data.is_a?(Array)
        fail "Not expecting more than one task" if external_task_data.length  > 1
        super(external_task_data)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.4 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.3 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.2 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.1 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.0 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.0.rc3 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.0.rc2 app/lib/actions/pulp/expect_one_task.rb
katello-2.4.0.rc1 app/lib/actions/pulp/expect_one_task.rb