image/files/boot/lib/ruby/boot/services/setup.rb
def manifests
    # @formatter:off
    Dir.glob(path.join('*/manifest.yml'))
       .sort
       .map { |fp| Pathname.new(fp) }
       .keep_if { |fp| fp.file? and fp.readable? }
       .map { |fp| [fp, YAML.safe_load(ERB.new(fp.read).result)] }
       .map { |fp, config| [fp, defaults_apply(config)] }
       .to_h
    # @formatter:on
  end
# List manifest files and get config indexed by filepaths.
#
# @return [Hash{Pathname => Hash}]
List manifest files and get config indexed by filepaths.
List manifest files and get config indexed by filepaths .
def manifests
    Dir.glob(path.join('*/manifest.yml'))
       .sort
       .map { |fp| Pathname.new(fp) }
       .keep_if { |fp| fp.file? and fp.readable? }
       .map { |fp| [fp, YAML.safe_load(ERB.new(fp.read).result)] }
       .map { |fp, config| [fp, defaults_apply(config)] }
       .to_h
  end
def manifests Dir . glob ( path . join ( '*/manifest.yml' ) ) . sort . map { | fp | Pathname . new ( fp ) } . keep_if { | fp | fp . file? and fp . readable? } . map { | fp | [ fp , YAML . safe_load ( ERB . new ( fp . read ) . result ) ] } . map { | fp , config | [ fp , defaults_apply ( config ) ] } . to_h end
List manifest files and get config indexed by filepaths.
List manifest files and get config indexed by filepaths .
# @formatter:off # @formatter:on
None
Hash{Pathname => Hash}