mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-13 16:12:57 +00:00
Add headers task to Robo (#274)
Looks good, thank you @chrisdavenport
If we ever have time (probably at the code sprint, added it to the todo-list), we should move the file existing check to the constructor.. We need that for every task 👍
This commit is contained in:
parent
143fef691b
commit
489cc73c99
15
RoboFile.php
15
RoboFile.php
@ -523,4 +523,19 @@ class RoboFile extends \Robo\Tasks
|
|||||||
->run()
|
->run()
|
||||||
->stopOnFail();
|
->stopOnFail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update copyright headers for this project. (Set the text up in the jorobo.ini)
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function headers()
|
||||||
|
{
|
||||||
|
if (!file_exists('jorobo.ini'))
|
||||||
|
{
|
||||||
|
$this->_copy('jorobo.dist.ini', 'jorobo.ini');
|
||||||
|
}
|
||||||
|
|
||||||
|
(new \Joomla\Jorobo\Tasks\CopyrightHeader())->run();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user