omda12 / akelosframework

Automatically exported from code.google.com/p/akelosframework
GNU Lesser General Public License v2.1
0 stars 0 forks source link

\PATCH add script\remove #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This script purpose is the opposite of the script generate. It uses the
AkGenerator class and all subclasses. All theses classes have been modified
to add the remove feature. 

To use it:
 script/remove model MyModel
 script/remove controller MyController
 script/remove service MyService
scaffold and clone generators can't remove files.

Added features to lib/akFtp.php
 - add function file_exists

Added features to lib/ak.php
 - add file_exists function
 - add is_dir function

To have this feature works on windows, please apply the patch I made about
directory_delete. See issue #35 to get the patch.

The following patch doesn't include the correction of the directory_delete
function !!!

Hope it's ok

Original issue reported on code.google.com by jerome.l...@gmail.com on 8 Apr 2007 at 3:42

Attachments:

GoogleCodeExporter commented 9 years ago
In order keep consistency with Rails commands we should implement it as 

    script/destroy

instead of 

    script/remove

Aside from that, we will also need unit tests. Can you supply tests for?

AkFtp::file_exists  --
                      |-- tests on _Ak_file_functions_over_ftp.php 
Ak::file_exists     --

Ak::is_dir

Original comment by bermifer...@gmail.com on 9 Apr 2007 at 3:04