Commit f0c27377 authored by Taylor Otwell's avatar Taylor Otwell

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

parent b989594c
...@@ -55,4 +55,23 @@ class Github extends Provider { ...@@ -55,4 +55,23 @@ class Github extends Provider {
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);
}
}
} }
\ No newline at end of file
...@@ -50,25 +50,6 @@ abstract class Provider { ...@@ -50,25 +50,6 @@ abstract class Provider {
@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.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment