diff --git a/laravel/cli/tasks/bundle/providers/github.php b/laravel/cli/tasks/bundle/providers/github.php index aa504da8..9dd90da0 100644 --- a/laravel/cli/tasks/bundle/providers/github.php +++ b/laravel/cli/tasks/bundle/providers/github.php @@ -55,4 +55,23 @@ protected function submodule($bundle) passthru('git submodule update'); } + /** + * Create the path to the bundle's dirname. + * + * @param array $bundle + * @return void + */ + protected function directory($bundle) + { + // If the installation target directory doesn't exist, we will create + // it recursively so that we can properly install the bundle to the + // correct path in the application. + $target = dirname(path('bundle').$this->path($bundle)); + + if ( ! is_dir($target)) + { + mkdir($target, 0777, true); + } + } + } \ No newline at end of file diff --git a/laravel/cli/tasks/bundle/providers/provider.php b/laravel/cli/tasks/bundle/providers/provider.php index 50f85956..4dc286db 100644 --- a/laravel/cli/tasks/bundle/providers/provider.php +++ b/laravel/cli/tasks/bundle/providers/provider.php @@ -50,25 +50,6 @@ protected function zipball($bundle, $url) @unlink($target); } - /** - * Create the path to the bundle's dirname. - * - * @param array $bundle - * @return void - */ - protected function directory($bundle) - { - // If the installation target directory doesn't exist, we will create - // it recursively so that we can properly install the bundle to the - // correct path in the application. - $target = dirname(path('bundle').$this->path($bundle)); - - if ( ! is_dir($target)) - { - mkdir($target, 0777, true); - } - } - /** * Return the path for a given bundle. *