Sha256: 0965a06851662f924a9bc9a0bcbf00af2d4e11a7b6265c6c36a1dee7f0bfc13f

Contents?: true

Size: 658 Bytes

Versions: 75

Compression:

Stored size: 658 Bytes

Contents

module Actions
  module Katello
    module Repository
      class InstanceUpdate < Actions::EntryAction
        middleware.use Actions::Middleware::KeepCurrentUser

        def plan(repository)
          action_subject repository
          repository.save!
          plan_action(::Actions::Pulp3::Orchestration::Repository::RefreshIfNeeded, repository, SmartProxy.pulp_primary)
          plan_self(:repository_id => repository.id)
        end

        def run
          repository = ::Katello::Repository.find(input[:repository_id])
          ForemanTasks.async_task(Katello::Repository::MetadataGenerate, repository)
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
katello-4.14.2 app/lib/actions/katello/repository/instance_update.rb
katello-4.15.0 app/lib/actions/katello/repository/instance_update.rb
katello-4.15.0.rc2 app/lib/actions/katello/repository/instance_update.rb
katello-4.15.0.rc1 app/lib/actions/katello/repository/instance_update.rb
katello-4.14.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.14.0 app/lib/actions/katello/repository/instance_update.rb
katello-4.14.0.rc3 app/lib/actions/katello/repository/instance_update.rb
katello-4.14.0.rc2 app/lib/actions/katello/repository/instance_update.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.14.0.rc1 app/lib/actions/katello/repository/instance_update.rb
katello-4.13.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.13.0 app/lib/actions/katello/repository/instance_update.rb
katello-4.12.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.13.0.rc1 app/lib/actions/katello/repository/instance_update.rb
katello-4.12.0 app/lib/actions/katello/repository/instance_update.rb
katello-4.12.0.rc3 app/lib/actions/katello/repository/instance_update.rb
katello-4.12.0.rc2 app/lib/actions/katello/repository/instance_update.rb
katello-4.12.0.rc1 app/lib/actions/katello/repository/instance_update.rb
katello-4.11.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.11.0 app/lib/actions/katello/repository/instance_update.rb