Inheritance diagram for ProjectTask:

Public Member Functions | |
| bake ($path, $skel=null, $skip=array('empty')) | |
| cakeAdmin ($name) | |
| corePath ($path) | |
| createHome ($dir) | |
| execute ($project=null) | |
| help () | |
| securitySalt ($path) | |
Definition at line 36 of file project.php.
| 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.
| 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
| string | $name Name to use as admin routing |
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
| string | $path Project path |
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.
| string | $dir Path to project |
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.
| 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
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'
| string | $path Project path |
Definition at line 194 of file project.php.
References $path, config(), Security::generateAuthKey(), uses(), write(), and Configure::write().
Referenced by execute().
1.4.7