ProjectTask Class Reference

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 38 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 121 of file project.php.
References Shell::err(), execute(), Shell::hr(), Shell::in(), low(), 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 251 of file project.php.
References Shell::$name, a(), 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 218 of file project.php.
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 180 of file project.php.
References $output, 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 46 of file project.php.
References bake(), config(), corePath(), createHome(), Shell::err(), 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 272 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 193 of file project.php.
References config(), Security::generateAuthKey(), uses(), and Configure::write().
Referenced by execute().
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/console/libs/tasks/project.php