Class: Runners::Docker::CreateExecutionInfo
- Inherits:
-
Object
- Object
- Runners::Docker::CreateExecutionInfo
- Defined in:
- app/services/runners/docker/create_execution_info.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
Instance Method Summary collapse
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
6 7 8 |
# File 'app/services/runners/docker/create_execution_info.rb', line 6 def container @container end |
Instance Method Details
#perform(container:) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/services/runners/docker/create_execution_info.rb', line 8 def perform(container:) @container = container execution_info_data = { id: container_name(container: container), status: status } if full_state_present? execution_info_data.merge!( exit_code: state["ExitCode"], started_at: state["StartedAt"], finished_at: state["FinishedAt"], error: state["Error"] ) end Runners::ExecutionInfo.new(execution_info_data) end |