Class: Kuroko2::ExecutionLogsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Kuroko2::ExecutionLogsController
- Defined in:
- app/controllers/kuroko2/execution_logs_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/kuroko2/execution_logs_controller.rb', line 2 def index @definition = Kuroko2::JobDefinition.find(logs_params[:job_definition_id]) @instance = Kuroko2::JobInstance.find(logs_params[:job_instance_id]) execution_logger = Kuroko2::ExecutionLogger. get_logger(stream_name: "JOB#{sprintf("%010d", @definition.id)}/#{@instance.id}") @response = execution_logger.get_logs(logs_params[:token]) rescue Kuroko2::ExecutionLogger::NotFound head 404 end |