@@ -53,6 +53,17 @@ public function __construct() {
5353 'dir ' => array ('core ' , 'third_party ' ),
5454 'msg ' => 'See https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc ' ,
5555 ),
56+ 'ion-auth ' => array (
57+ 'site ' => 'github ' ,
58+ 'user ' => 'benedmunds ' ,
59+ 'repos ' => 'CodeIgniter-Ion-Auth ' ,
60+ 'name ' => 'Codeigniter Matches CLI ' ,
61+ 'dir ' => array (
62+ 'config ' , 'controllers ' , 'language ' , 'libraries ' ,
63+ 'migrations ' , 'models ' , 'sql ' , 'views '
64+ ),
65+ 'msg ' => 'See http://benedmunds.com/ion_auth/ ' ,
66+ ),
5667 ];
5768 }
5869
@@ -74,6 +85,7 @@ public function usage($self)
7485 $ msg .= " php $ self matches-cli master " . PHP_EOL ;
7586 $ msg .= " php $ self hmvc-modules master " . PHP_EOL ;
7687 $ msg .= " php $ self modular-extensions-hmvc codeigniter-3.x " . PHP_EOL ;
88+ $ msg .= " php $ self ion-auth 2 " . PHP_EOL ;
7789
7890 return $ msg ;
7991 }
@@ -126,6 +138,7 @@ private function downloadFromGithub($package, $version)
126138
127139 foreach ($ dir as $ directory ) {
128140 $ src [] = realpath (dirname ($ filepath ) . "/ $ repos- $ version/ $ directory " );
141+ @mkdir (__DIR__ . "/../application/ $ directory " );
129142 $ dst [] = realpath (__DIR__ . "/../application/ $ directory " );
130143 }
131144 return [$ src , $ dst ];
@@ -150,6 +163,7 @@ private function downloadFromBitbucket($package, $version)
150163
151164 foreach ($ dir as $ directory ) {
152165 $ src [] = realpath (dirname ($ filepath ) . "/ $ dirname/ $ directory " );
166+ @mkdir (__DIR__ . "/../application/ $ directory " );
153167 $ dst [] = realpath (__DIR__ . "/../application/ $ directory " );
154168 }
155169 return [$ src , $ dst ];
0 commit comments