cleanassets

command line script to clean assets folder.
8 followers

CleanAssetsCommand assets is console yii script to clean assets folder. I use this script to clean project /assets folder by my cronbot once a month. You can use it simply from command line or with cron actions.

Usage

  1. Copy CleanAssetsCommand to application.commands folder
  2. run yiic help cleanassets to see how to use this script

Command line arguments

--auto - makes script to run in silent mode;

--dir=/path/to/dir - specifies path to directory. If blank - system default path will be applied;

Useful info:

How to Run Yiic directly from your app without a shell by jacmoe

Be carefull

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Total 1 comment

#5336 report it
jacmoe at 2011/10/05 03:00pm
Nice one!

Awesome! This goes right into Bugitor. :)

Leave a comment

Please to leave your comment.

Create extension