tweaking zip provider.

This commit is contained in:
Taylor Otwell 2012-02-02 15:41:20 -06:00
parent 62ee825071
commit e0c84a94cc
2 changed files with 6 additions and 4 deletions

View File

@ -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));

2
storage/work/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore