Config :: locale

LOAD EN MERGE LOCKELE-specifieke configuratiebestanden
Download nu

Config :: locale Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • Perl Artistic License
  • Prijs:
  • FREE
  • Naam uitgever:
  • Aran Clary Deltac
  • Uitgever website:
  • http://search.cpan.org/~bluefeet/

Config :: locale Tags


Config :: locale Beschrijving

Config :: Locale is een PERL-module die een identiteitsarray inneemt, bepaalt de permutaties van de identiteit met behulp van Algorithm :: Loops, laadt configuratiebestanden met Config :: Any, en combineert uiteindelijk de configuraties met HASH :: MERGE. SETUP: CONFIG :: LOCALE-> NIEUW (IDENTITEIT => , Suffix => '.yml',); de volgende configuratiebestanden worden gezocht (vermeld van minimaal specifiek te meest): standaard.yml ALL.ALL.QA.YML ALL.1.AAL.YML ALL.1.QA.YML DB.ALL.AAL.YML DB.ALL.QA.YML DB.1.Alle.yml DB .1.qa.ymfor voor elk bestand dat de inhoud wordt gevonden, wordt geparseerd en vervolgens samengevoegd om de uiteindelijke configuratie-hash te produceren. De hashes zullen worden samengevoegd, zodat het meest specifieke configuratiebestand voorrang heeft over de minst specifieke bestanden. Dus, in het bovenstaande voorbeeld, "dB.1.qa.yml" -waarden zullen de waarden overschrijven van "standaard.yml" .Synopsis Gebruik config :: locale; Mijn $ locale = config :: locale-> nieuw (identiteit => , directory => '/ pad / naar / configs /',); Mijn $ config = $ LOCALE-> CONFIG (); HOMEPAGE


Config :: locale Gerelateerde software