Sha256: b686ba44f89e7e73f05a78ba58831bef73f44f8d53dca675cf3014bd85a46184

Contents?: true

Size: 461 Bytes

Versions: 13

Compression:

Stored size: 461 Bytes

Contents

module Actions
  module Katello
    module Repository
      class IndexErrata < Actions::EntryAction
        def plan(repository)
          plan_self(:user_id => ::User.current.id, :id => repository.id)
        end

        def run
          ::User.current = ::User.find(input[:user_id])
          repo = ::Katello::Repository.find(input[:id])
          repo.index_db_errata
        ensure
          ::User.current = nil
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.4 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.3 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.2 app/lib/actions/katello/repository/index_errata.rb
katello-3.0.0.rc4 app/lib/actions/katello/repository/index_errata.rb
katello-3.0.0.rc3 app/lib/actions/katello/repository/index_errata.rb
katello-3.0.0.rc2 app/lib/actions/katello/repository/index_errata.rb
katello-3.0.0.rc1 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.1 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.0 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.0.rc3 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.0.rc2 app/lib/actions/katello/repository/index_errata.rb
katello-2.4.0.rc1 app/lib/actions/katello/repository/index_errata.rb