Class: Content::Api::RepositoriesController
- Inherits:
-
Api::V2::BaseController
- Object
- Api::V2::BaseController
- Content::Api::RepositoriesController
- Defined in:
- app/controllers/content/api/repositories_controller.rb
Instance Method Summary collapse
-
#events ⇒ Object
callback event from pulp upon tasks/events finished up.
Instance Method Details
#events ⇒ Object
callback event from pulp upon tasks/events finished up
9 10 11 12 13 14 15 16 |
# File 'app/controllers/content/api/repositories_controller.rb', line 9 def events if (repo_id = params['payload'] && params['payload']['repo_id']) repo = Content::Repository.where(:pulp_id => repo_id).first end render_error 'not_found', :status => :not_found and return false if repo.nil? PulpEventHandler.new(repo_id, params) head :status => 202 end |