OSDN Git Service

- add-project -b オプションの挙動変更 http://sourceforge.jp/ticket/browse.php?group_id=1343...
authormaru_cc <maru_cc@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 29 Apr 2009 09:45:44 +0000 (09:45 +0000)
committermaru_cc <maru_cc@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 29 Apr 2009 09:45:44 +0000 (09:45 +0000)
class/Plugin/Generator/Ethna_Plugin_Generator_Project.php
class/Plugin/Handle/Ethna_Plugin_Handle_AddProject.php
test/Ethna_MockProject.php

index f0f02b8..4454469 100644 (file)
@@ -71,8 +71,6 @@ class Ethna_Plugin_Generator_Project extends Ethna_Plugin_Generator
             return $r;
         }
 
-        $basedir = sprintf("%s/%s", $basedir, $id);
-
         // ディレクトリ作成
         if (is_dir($basedir) == false) {
             // confirm
index c895f0b..ff975fd 100644 (file)
@@ -46,7 +46,7 @@ class Ethna_Plugin_Handle_AddProject extends Ethna_Plugin_Handle
         if (isset($opt_list['basedir'])) {
             $basedir = realpath(end($opt_list['basedir']));
         } else {
-            $basedir = getcwd();
+            $basedir = sprintf("%s/%s", getcwd(), strtolower($app_id));
         }
 
         // skeldir
index 7427d5a..2cd797f 100644 (file)
@@ -65,7 +65,7 @@ class Ethna_MockProject
         $id = 'add-project';
         $options = array(
                        '-b',
-                       $this->basedir,
+                       $this->basedir . '/' . $this->project_name,
                        '-s',
                        $this->skel_dir, 
                        $this->project_name,