[Rt-commit] r15584 - in rt/branches/3.999-DANGEROUS: lib

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Aug 27 23:45:01 EDT 2008


Author: sunnavy
Date: Wed Aug 27 23:45:01 2008
New Revision: 15584

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/lib/RT.pm

Log:
 r16230 at sunnavys-mb:  sunnavy | 2008-08-28 11:38:00 +0800
 add a init_jifty sub in RT.pm


Modified: rt/branches/3.999-DANGEROUS/lib/RT.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT.pm	Wed Aug 27 23:45:01 2008
@@ -62,6 +62,7 @@
 our $BASE_PATH        = Jifty::Util->app_root;
 our $EtcPath          = $BASE_PATH . '/etc';
 our $BinPath          = $BASE_PATH . '/bin';
+our $SbinPath          = $BASE_PATH . '/sbin';
 our $VarPath          = $BASE_PATH . '/var';
 our $LocalPath        = $BASE_PATH . '/local';
 our $LocalLibPath     = $BASE_PATH . '/local/lib';
@@ -266,7 +267,7 @@
     return \@PLUGINS;
 }
 
-=head2 InitPlugins
+=head2 init_plugins
 
 Initialze all Plugins found in the RT configuration file, setting up their lib and HTML::Mason component roots.
 
@@ -312,6 +313,18 @@
     return $_install_mode;
 }
 
+=head2 init_jifty
+
+call Jifty->new to init Jifty's stuff.
+nomrally, we need to do it early in BEGIN block
+
+=cut
+
+sub init_jifty {
+    require Jifty;
+    Jifty->new;
+}
+
 =head1 BUGS
 
 Please report them to rt-bugs at bestpractical.com, if you know what's


More information about the Rt-commit mailing list