Sha256: 466ba03f1873ffe7f63c6780bd703a50d1cfae41423ff629748aea4a478261a5

Contents?: true

Size: 787 Bytes

Versions: 12

Compression:

Stored size: 787 Bytes

Contents

object @task if @task

extends 'foreman_tasks/api/tasks/show'

attributes :parent_task_id, :start_at, :start_before, :external_id
node(:action) { @task.action }
node(:execution_plan) { { state: @task.execution_plan.state, cancellable: @task.execution_plan.cancellable? } }
node(:failed_steps) { @task.input_output_failed_steps }
node(:running_steps) { @task.input_output_running_steps }
node(:help) { troubleshooting_info_text }
node(:has_sub_tasks) { @task.sub_tasks.any? }
node(:locks) do
  @task.locks.map do |lock|
    { name: lock.name, exclusive: lock.exclusive, resource_type: lock.resource_type, resource_id: lock.resource_id }
  end
end
node(:username_path) { username_link_task(@task.owner, @task.username) }
node(:dynflow_enable_console) { Setting['dynflow_enable_console'] }

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman-tasks-3.0.6 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-3.0.5 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-3.0.4 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-2.0.3 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-3.0.3 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-3.0.2 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-3.0.1 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-3.0.0 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-2.0.2 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-2.0.1 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-2.0.0 app/views/foreman_tasks/api/tasks/details.json.rabl
foreman-tasks-1.2.0 app/views/foreman_tasks/api/tasks/details.json.rabl