Sha256: 2328b3e62b28f1022658c3977b6ed0101147943afdb19c7fe4776e3764a2cc61

Contents?: true

Size: 364 Bytes

Versions: 11

Compression:

Stored size: 364 Bytes

Contents

object @recurring_logic

attributes :id, :cron_line, :end_time, :iteration, :task_group_id, :state,
           :max_iteration, :purpose

node(:task_count) { |rl| rl.tasks.count }
node(:action) { |rl| rl.tasks.first.try(:action) }
node(:last_occurence) { |rl| rl.last_task&.started_at }
node(:next_occurence) { |rl| rl.next_task&.start_at if rl.state == 'active' }

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman-tasks-10.0.1 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-10.0.0 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.2.3 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.2.2 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.2.1 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.2.0 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.1.1 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.0.4 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.1.0 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.0.2 app/views/foreman_tasks/api/recurring_logics/base.json.rabl
foreman-tasks-9.0.1 app/views/foreman_tasks/api/recurring_logics/base.json.rabl