Class: Limber::Helper::LibraryAndMultiplexingTemplateConstructor

Inherits:
TemplateConstructor show all
Defined in:
lib/limber/helper.rb

Overview

Class LibraryAndMultiplexingTemplateConstructor provides a template constructor which build the library portion of the submission template with the multiplexing request. No sequencing requests are added.

Instance Attribute Summary

Attributes inherited from TemplateConstructor

#catalogue, #cherrypicked, #name, #pipeline, #prefix, #product_line, #role, #sequencing_keys, #type

Instance Method Summary collapse

Methods inherited from TemplateConstructor

#build!, find_for

Instance Method Details

#name_for(cherrypick, _sequencing_request_type) ⇒ Object


269
270
271
# File 'lib/limber/helper.rb', line 269

def name_for(cherrypick, _sequencing_request_type)
  "#{pipeline} - #{cherrypick ? 'Cherrypicked - ' : ''}#{name} - Pool"
end

#request_type_ids(cherrypick, _sequencing) ⇒ Object


277
278
279
280
281
282
# File 'lib/limber/helper.rb', line 277

def request_type_ids(cherrypick, _sequencing)
  ids = []
  ids << [cherrypick_request_type.id] if cherrypick
  ids << [library_request_type.id]
  ids << [multiplexing_request_type.id] unless library_request_type.for_multiplexing?
end

#sequencing_request_typesObject


273
274
275
# File 'lib/limber/helper.rb', line 273

def sequencing_request_types
  [nil]
end