X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README;h=03072a27c85163e241c8b8f3320caac77c73b580;hb=a4f0ac9f78fcaf1ce63b9eb3059e6634b1bcda2b;hp=b09fb52de04ecfcb2bb0ee1ba66fdf2b7d36d6d7;hpb=20611f8eb43f64002e64aac99a98eb0b3a952f1c;p=gitmo%2FMooseX-ConfigFromFile.git diff --git a/README b/README index b09fb52..03072a2 100644 --- a/README +++ b/README @@ -31,7 +31,7 @@ SYNOPSIS with 'MooseX::SomeSpecificConfigRole'; # optionally, default the configfile: - has +configfile ( default => '/tmp/foo.yaml' ); + sub configfile { '/tmp/foo.yaml' } # ... insert your stuff here ... @@ -67,6 +67,10 @@ Attributes has +configfile ( default => '/etc/myapp.yaml' ); + Note that you can alternately just provide a "configfile" method which + returns the config file when called - this will be used in preference to + the default of the attribute. + Class Methods new_with_config This is an alternate constructor, which knows to look for the @@ -83,14 +87,19 @@ Class Methods and it is expected to return a hashref of arguments to pass to "new()" which are sourced from the configfile. - meta - The Moose meta stuff, included here because otherwise pod tests fail - sometimes +COPYRIGHT + Copyright (c) 2007 - 2009 the MooseX::ConfigFromFile "AUTHOR" and + "CONTRIBUTORS" as listed below. -BUGS AUTHOR Brandon L. Black, +CONTRIBUTORS + Tomas Doran "" (current maintainer). + Karen Etheridge + Chris Prather + Zbigniew Lukasiak + LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.