Skip to content

Commit

Permalink
Add headers task to Robo (#274)
Browse files Browse the repository at this point in the history
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 👍
  • Loading branch information
chrisdavenport authored and yvesh committed Oct 22, 2016
1 parent 143fef6 commit 489cc73
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,4 +523,19 @@ public function runUnit()
->run()
->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();
}
}

0 comments on commit 489cc73

Please sign in to comment.