merged skunkworks into develop.
This commit is contained in:
27
laravel/cli/tasks/bundle/providers/github.php
Normal file
27
laravel/cli/tasks/bundle/providers/github.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php namespace Laravel\CLI\Tasks\Bundle\Providers;
|
||||
|
||||
class Github implements Provider {
|
||||
|
||||
/**
|
||||
* Install the given bundle into the application.
|
||||
*
|
||||
* @param string $bundle
|
||||
* @return void
|
||||
*/
|
||||
public function install($bundle)
|
||||
{
|
||||
$repository = "git://github.com/{$bundle['location']}.git";
|
||||
|
||||
// We need to just extract the basename of the bundle path when
|
||||
// adding the submodule. Of course, we can't add a submodule to
|
||||
// a location outside of the Git repository, so we don't need
|
||||
// the full bundle path. We'll just take the basename in case
|
||||
// the bundle directory has been renamed.
|
||||
$path = basename(BUNDLE_PATH).'/';
|
||||
|
||||
passthru('git submodule add '.$repository.' '.$path.$bundle['name']);
|
||||
|
||||
passthru('git submodule update');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user