app/lib/actions/pulp3/repository/update_repository.rb
module Actions
module Pulp3
module Repository
class UpdateRepository < Pulp3::Abstract
def plan(repository, smart_proxy)
plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id)
end
def run
repo = ::Katello::Repository.find(input[:repository_id])
output[:response] = repo.backend_service(smart_proxy).update
end
end
end
end
end