From e0c84a94cc49fa00e1d77f2b9828dad0d29ee8e0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 2 Feb 2012 15:41:20 -0600 Subject: [PATCH] tweaking zip provider. --- laravel/cli/tasks/bundle/providers/provider.php | 8 ++++---- storage/work/.gitignore | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 storage/work/.gitignore diff --git a/laravel/cli/tasks/bundle/providers/provider.php b/laravel/cli/tasks/bundle/providers/provider.php index a7879480..573450d8 100644 --- a/laravel/cli/tasks/bundle/providers/provider.php +++ b/laravel/cli/tasks/bundle/providers/provider.php @@ -22,9 +22,9 @@ abstract public function install($bundle); protected function zipball($bundle, $url) { // When installing a bundle from a Zip archive, we'll first clone - // down the bundle zip into the bundles "working" directory. - // This gives us a spot to all of our bundle extrations. - $target = path('storage').'work/bundles/bundle.zip'; + // down the bundle zip into the bundles "working" directory so + // we have a spot to do all of our bundle extrations. + $target = path('storage').'work/laravel-bundle.zip'; File::put($target, file_get_contents($url)); @@ -36,7 +36,7 @@ protected function zipball($bundle, $url) // into the working directory. By convention, we expect the // archive to contain one root directory, and all of the // bundle contents should be stored in that directory. - $zip->extractTo(path('storage').'work/bundles'); + $zip->extractTo(path('storage').'work'); $latest = File::latest(dirname($target)); diff --git a/storage/work/.gitignore b/storage/work/.gitignore new file mode 100644 index 00000000..c96a04f0 --- /dev/null +++ b/storage/work/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file