[Nostromo] Refactor FS Tasks flagging system

This commit is contained in:
Andrés Montañez
2017-02-11 00:30:49 -03:00
parent 2c087ab477
commit f6886f3d28
9 changed files with 131 additions and 65 deletions
-27
View File
@@ -48,33 +48,6 @@ abstract class AbstractFileTask extends AbstractTask
*/
abstract protected function getParameters();
/**
* Returns the default "flags".
*
* @return null|string
*/
protected function getDefaultFlags()
{
return null;
}
/**
* Returns the flags for the current command.
*
* @return string
*/
protected function getFlags()
{
$options = $this->getOptions();
$flags = $this->getDefaultFlags();
if (array_key_exists('flags', $options) && !empty($options['flags'])) {
$flags = trim($options['flags']);
}
return empty($flags) ? '' : $flags.' ';
}
/**
* Returns a file with the placeholders replaced
*