Add task bundle:uninstall, bundle:unpublish, migrate:rollback bundle, migrate:reset bundle.

This commit is contained in:
vtalbot
2012-09-20 22:15:29 -04:00
parent 6c55f9cf54
commit 8931369665
4 changed files with 94 additions and 2 deletions

View File

@@ -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.
*