Add task bundle:uninstall, bundle:unpublish, migrate:rollback bundle, migrate:reset bundle.
This commit is contained in:
@@ -28,6 +28,26 @@ class Publisher {
|
||||
echo "Assets published for bundle [$bundle].".PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a bundle's assets from the public directory
|
||||
*
|
||||
* @param string $bundle
|
||||
* @return void
|
||||
*/
|
||||
public function unpublish($bundle)
|
||||
{
|
||||
if ( ! Bundle::exists($bundle))
|
||||
{
|
||||
echo "Bundle [$bundle] is not registered.";
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
File::rmdir(path('public').'bundles'.DS.$bundle);
|
||||
|
||||
echo "Assets deleted for bundle [$bundle].".PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy the contents of a bundle's assets to the public folder.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user