Sha256: 3164dd06e54e5baf04dc17672301d90a0942532abb96fbb487b5bfa7f6677ba6

Contents?: true

Size: 609 Bytes

Versions: 98

Compression:

Stored size: 609 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::Pulp::Repository::Refresh, repository)
          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

98 entries across 98 versions & 1 rubygems

Version Path
katello-4.1.4 app/lib/actions/katello/repository/instance_update.rb
katello-4.0.3 app/lib/actions/katello/repository/instance_update.rb
katello-3.18.5 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.3 app/lib/actions/katello/repository/instance_update.rb
katello-4.0.2.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.2.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.0.2 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.2 app/lib/actions/katello/repository/instance_update.rb
katello-3.18.4 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.0 app/lib/actions/katello/repository/instance_update.rb
katello-4.0.1.2 app/lib/actions/katello/repository/instance_update.rb
katello-3.18.3.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.0.1.1 app/lib/actions/katello/repository/instance_update.rb
katello-3.18.3 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.0.rc2 app/lib/actions/katello/repository/instance_update.rb
katello-4.0.1 app/lib/actions/katello/repository/instance_update.rb
katello-4.1.0.rc1.1 app/lib/actions/katello/repository/instance_update.rb