Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | public function addAndPushContentToGithubRepository(string $outputDirectory, string $githubRepository) |
||
25 | { |
||
26 | (new Process(sprintf('cd %s', $outputDirectory)))->run(); |
||
27 | (new Process('git init && git add . && git commit -m "Regenerate output"'))->run(); |
||
28 | |||
29 | (new Process(sprintf( |
||
30 | 'git push --force --quiet "${%s}" master:gh-pages > /dev/null 2>&1', |
||
31 | $githubRepository |
||
32 | )))->run(); |
||
33 | } |
||
34 | } |
||
35 |