Sha256: 3bf7b3921a50924fa1cae6f25801ac49ab27f2e216a3a1b0826107b7867001ab

Contents?: true

Size: 352 Bytes

Versions: 8

Compression:

Stored size: 352 Bytes

Contents

class JobInvocationTaskGroup < ::ForemanTasks::TaskGroup

  has_one :job_invocation, :foreign_key => :task_group_id

  alias resource job_invocation

  def resource_name
    N_('Job Invocation')
  end

  def self.search_query_for(thing)
    case thing
    when ::ForemanTasks::RecurringLogic
      "recurring_logic.id = #{thing.id}"
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_remote_execution-1.3.7 app/models/job_invocation_task_group.rb
foreman_remote_execution-1.3.6 app/models/job_invocation_task_group.rb
foreman_remote_execution-1.4.1 app/models/job_invocation_task_group.rb
foreman_remote_execution-1.3.5 app/models/job_invocation_task_group.rb
foreman_remote_execution-1.3.4 app/models/job_invocation_task_group.rb
foreman_remote_execution-1.3.3 app/models/job_invocation_task_group.rb
foreman_remote_execution-1.3.2 app/models/job_invocation_task_group.rb
foreman_remote_execution-1.3.1 app/models/job_invocation_task_group.rb