Sha256: 08ed8a9106cd71e4b343e20439b7b1cb525b84d0ab063a7a4626da553c0eb469

Contents?: true

Size: 465 Bytes

Versions: 3

Compression:

Stored size: 465 Bytes

Contents

module Naf
  class LogViewerController < Naf::ApplicationController

    def index
      if params['record_type'] == 'job'
        @job = ::Naf::HistoricalJob.find_by_id(params['record_id'].to_i)
        @status = ::Logical::Naf::Job.new(@job).status
        @partial = 'job_logs'
      elsif params['record_type'] == 'runner'
        @runner = ::Naf::MachineRunner.find_by_id(params['record_id'].to_i)
        @partial = 'runner_logs'
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
naf-2.1.13 app/controllers/naf/log_viewer_controller.rb
naf-2.1.12 app/controllers/naf/log_viewer_controller.rb
naf-2.1.11 app/controllers/naf/log_viewer_controller.rb