Class: CommandJobLog

Inherits:
Object
  • Object
show all
Includes:
StandardModel
Defined in:
lib/app/models/command_job_log.rb

Overview

Capture command log messages for a given job

Instance Method Summary collapse

Instance Method Details

#display_messageObject

Display message



26
27
28
29
30
31
32
# File 'lib/app/models/command_job_log.rb', line 26

def display_message
  if dir.present?
    "Dir: #{dir}\nCommand: #{command}\nOutput: #{message}"
  else
    message
  end
end