Method: ConfCtl::Generation::BuildList#find

Defined in:
lib/confctl/generation/build_list.rb

#find(toplevel, swpin_paths) ⇒ Generation::Build?

Parameters:

  • toplevel (String)
  • swpin_paths (Hash)

Returns:



92
93
94
95
96
# File 'lib/confctl/generation/build_list.rb', line 92

def find(toplevel, swpin_paths)
  generations.detect do |gen|
    gen.toplevel == toplevel && gen.swpin_paths == swpin_paths
  end
end