Sha256: 29e3d18119fdaa90998c355a76c37d626f669ca79ee11719e4ad541bbf4432a6

Contents?: true

Size: 320 Bytes

Versions: 10

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true
module Shipit
  module Api
    class OutputsController < BaseController
      require_permission :read, :stack

      def show
        render(plain: task.chunk_output)
      end

      private

      def task
        @task ||= stack.tasks.find(params[:task_id])
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.38.0 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.37.0 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.36.1 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.36.0 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.35.1 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.35.0 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.34.0 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.33.0 app/controllers/shipit/api/outputs_controller.rb
shipit-engine-0.32.0 app/controllers/shipit/api/outputs_controller.rb