Deletes all files from specified dir, ignoring git files.
<?php
$this->taskCleanDir(['tmp','logs'])
->wastePatterns([
"/\.DS_Store/",
"/Thumbs\.db/",
"/.*~/",
"/\._.*\/",
])->run();
?>
wastePatterns(array $wastePatterns)
Set waste patterns to delete
Copies one dir into another and replace variables
<?php
$this->taskCopyReplaceDir(['dist/config' => 'config'])
->from(array('##dbname##', '##dbhost##'))
->to(array('robo', 'localhost'))
->startDelimiter('##')
->endDelimiter('##')
->dirPermissions(0755)
->filePermissions(0644)
->exclude([file, file])
->run();
?>
from($from)
Set string(s) to be replacedto($to)
Set value(s) to be set as a replacementendDelimiter($delimiter)
Set end delimiterstartDelimiter($delimiter)
Set start delimiterdirPermissions($value)
Sets the default folder permissions for the destination if it doesn't existfilePermissions($value)
Sets the default file permissions for the destination if it doesn't existexclude(array $exclude = Array ( ) )
List files to exclude.