Jifty::Util - Things that don't fit anywhere else
absolute_path converts PATH into an absolute path, relative to the application's root (as determined by "app_root") This can be called as an object or class method.
absolute_path
Takes a "path" style /foo/bar/baz and returns a canonicalized (but not necessarily absolute) version of the path. Always use / as the separator, even on platforms which recognizes both / and \ as valid separators in PATH.
/
\
Returns the root directory that Jifty has been installed into. Uses %INC to figure out where Jifty.pm is.
Returns the 'share' directory of the installed Jifty module. This is currently only used to store the common Mason components.
Returns the application's root path. This is done by searching upward from the current directory, looking for a directory which contains a bin/jifty. Failing that, it searches upward from wherever the executable was found.
bin/jifty
It dies if it can only find /usr or /usr/local which fit these criteria.
die
/usr
/usr/local
Returns the default name of the application. This is the name of the application's root directory, as defined by "app_root".
When handed a directory, creates that directory, starting as far up the chain as necessary. (This is what 'mkdir -p' does in your shell)
Uses UNIVERSAL::require to require the provided PATH. Additionally, logs any failures at the error log level.
PATH
error
Helper function to test whether a given class has already been require'd.
Various folks at Best Practical Solutions, LLC.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.