Update of /cvsroot/module-build/Module-Build/lib/Module
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26079/lib/Module
Modified Files:
Tag: release-0_26_branch
Build.pm
Log Message:
Document the new_from_context() method
Index: Build.pm
===================================================================
RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build.pm,v
retrieving revision 1.164.2.2
retrieving revision 1.164.2.3
diff -C2 -d -r1.164.2.2 -r1.164.2.3
*** Build.pm 4 Nov 2004 17:20:31 -0000 1.164.2.2
--- Build.pm 12 Nov 2004 02:28:07 -0000 1.164.2.3
***************
*** 768,771 ****
--- 768,782 ----
code that creates them.
+ =item new_from_context(%args)
+
+ When called from a directory containing a F<Build.PL> script and a
+ F<META.yml> file (in other words, the base directory of a
+ distribution), this method will run the F<Build.PL> and return the
+ resulting C<Module::Build> object to the caller. Any key-value
+ arguments given to C<new_from_context()> are essentially like
+ command-line arguments given to the F<Build.PL> script, so for example
+ you could pass C<< verbose => 1 >> to this method to turn on
+ verbosity.
+
=item resume()
|