ProjectTask Class Reference

Inheritance diagram for ProjectTask:

Shell Object List of all members.

Public Member Functions

 bake ($path, $skel=null, $skip=array('empty'))
 cakeAdmin ($name)
 corePath ($path)
 createHome ($dir)
 execute ($project=null)
 help ()
 securitySalt ($path)

Detailed Description

Definition at line 36 of file project.php.


Member Function Documentation

ProjectTask::bake ( path,
skel = null,
skip = array('empty') 
)

Looks for a skeleton template of a Cake application, and if not found asks the user for a path. When there is a path this method will make a deep copy of the skeleton to the project directory. A default home page will be added, and the tmp file storage will be chmod'ed to 0777.

Parameters:
string $path Project path
string $skel Path to copy from
string $skip array of directories to skip when copying private

Definition at line 122 of file project.php.

References $path, __(), Shell::err(), execute(), Folder(), Shell::hr(), Shell::in(), Shell::out(), and params().

Referenced by execute().

ProjectTask::cakeAdmin ( name  ) 

Enables Configure::read('Routing.admin') in /app/config/core.php

Parameters:
string $name Name to use as admin routing
Returns:
boolean Success public

Definition at line 250 of file project.php.

References Shell::$name, a(), write(), and Configure::write().

ProjectTask::corePath ( path  ) 

Generates and writes CAKE_CORE_INCLUDE_PATH

Parameters:
string $path Project path
Returns:
boolean Success public

Definition at line 217 of file project.php.

References $path, and write().

Referenced by execute().

ProjectTask::createHome ( dir  ) 

Writes a file with a default home page to the project.

Parameters:
string $dir Path to project
Returns:
boolean Success public

Definition at line 181 of file project.php.

References $output, $path, and Shell::createFile().

Referenced by execute().

ProjectTask::execute ( project = null  ) 

Checks that given project path does not already exist, and finds the app directory in it. Then it calls bake() with that information.

Parameters:
string $project Project path public

Definition at line 44 of file project.php.

References $path, __(), bake(), check(), config(), corePath(), createHome(), Shell::err(), exists(), Folder(), Shell::in(), Shell::out(), params(), permissions, securitySalt(), and Folder::slashTerm().

Referenced by bake().

ProjectTask::help (  ) 

Help

Returns:
void public

Reimplemented from Shell.

Definition at line 271 of file project.php.

References Object::_stop(), Shell::hr(), and Shell::out().

ProjectTask::securitySalt ( path  ) 

Generates and writes 'Security.salt'

Parameters:
string $path Project path
Returns:
boolean Success public

Definition at line 194 of file project.php.

References $path, config(), Security::generateAuthKey(), uses(), write(), and Configure::write().

Referenced by execute().


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 00:30:56 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7