moved directory function into github provider since it doesnt belong in base provider.

This commit is contained in:
Taylor Otwell 2012-02-02 16:41:23 -06:00
parent b989594c82
commit f0c273771a
2 changed files with 19 additions and 19 deletions

View File

@ -55,4 +55,23 @@ protected function submodule($bundle)
passthru('git submodule update'); 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);
}
}
} }

View File

@ -50,25 +50,6 @@ protected function zipball($bundle, $url)
@unlink($target); @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. * Return the path for a given bundle.
* *