Method: JobInvocation#pattern_template_invocation_for_host

Defined in:
app/models/job_invocation.rb

#pattern_template_invocation_for_host(host) ⇒ Object



179
180
181
182
183
184
185
186
187
188
# File 'app/models/job_invocation.rb', line 179

def pattern_template_invocation_for_host(host)
  providers = available_providers(host)
  providers.each do |provider|
    pattern_template_invocations.each do |template_invocation|
      if template_invocation.template.provider_type == provider
        return template_invocation
      end
    end
  end
end