[Jifty-commit] r399 -

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Dec 26 19:59:27 EST 2005


Author: jesse
Date: Mon Dec 26 19:59:26 2005
New Revision: 399

Modified:
   /   (props changed)
   jifty/trunk/lib/Jifty/Util.pm

Log:
 r21795 at truegrounds:  jesse | 2005-12-26 19:35:05 -0500
  * Jifty::Util->app_name renamed to Jifty::Util->default_app_name
 Jifty::Util->app_root failure softened to a warning to support app creation


Modified: jifty/trunk/lib/Jifty/Util.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Util.pm	(original)
+++ jifty/trunk/lib/Jifty/Util.pm	Mon Dec 26 19:59:26 2005
@@ -98,19 +98,19 @@
             pop @root;
         }
     }
-    die "Can't guess application root from current path ("
+    warn "Can't guess application root from current path ("
         . Cwd::cwd()
         . ") or bin path ($FindBin::Bin)\n";
 }
 
-=head2 app_name
+=head2 default_app_name
 
 Returns the default name of the application.  This is the name of the
 application's root directory, as defined by L</app_root>.
 
 =cut
 
-sub app_name {
+sub default_app_name {
     my $self = shift;
     my @root = File::Spec->splitdir( Jifty::Util->app_root);
     return pop @root;


More information about the Jifty-commit mailing list