Class: Runners::ExecutionInfo

Inherits:
Struct
  • Object
show all
Defined in:
app/services/runners/execution_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



6
7
8
# File 'app/services/runners/execution_info.rb', line 6

def error
  @error
end

#exit_codeObject

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



6
7
8
# File 'app/services/runners/execution_info.rb', line 6

def exit_code
  @exit_code
end

#finished_atObject

Returns the value of attribute finished_at

Returns:

  • (Object)

    the current value of finished_at



6
7
8
# File 'app/services/runners/execution_info.rb', line 6

def finished_at
  @finished_at
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'app/services/runners/execution_info.rb', line 6

def id
  @id
end

#schedule_pendingObject

Returns the value of attribute schedule_pending

Returns:

  • (Object)

    the current value of schedule_pending



6
7
8
# File 'app/services/runners/execution_info.rb', line 6

def schedule_pending
  @schedule_pending
end

#started_atObject

Returns the value of attribute started_at

Returns:

  • (Object)

    the current value of started_at



6
7
8
# File 'app/services/runners/execution_info.rb', line 6

def started_at
  @started_at
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'app/services/runners/execution_info.rb', line 6

def status
  @status
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'app/services/runners/execution_info.rb', line 13

def error?
  check_completion_information_available

  status == "error"
end

#exited_without_completion_information?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/services/runners/execution_info.rb', line 31

def exited_without_completion_information?
  status == "exited"
end

#pending?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/services/runners/execution_info.rb', line 23

def pending?
  status == "pending"
end

#running?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/services/runners/execution_info.rb', line 19

def running?
  status == "running"
end

#schedule_pending?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'app/services/runners/execution_info.rb', line 35

def schedule_pending?
  schedule_pending
end

#success?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'app/services/runners/execution_info.rb', line 7

def success?
  check_completion_information_available

  status == "success"
end

#terminated?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/services/runners/execution_info.rb', line 27

def terminated?
  exited_without_completion_information? || success? || error?
end