Added EGH command (called by cron)
This commit is contained in:
30
www/protected/commands/EGH_RefreshCommand.php
Normal file
30
www/protected/commands/EGH_RefreshCommand.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
include 'ExtendedGitGraph.php';
|
||||
|
||||
class EGH_RefreshCommand extends CConsoleCommand
|
||||
{
|
||||
public function run($args)
|
||||
{
|
||||
$v = new ExtendedGitGraph('Mikescher');
|
||||
|
||||
$v->setSessionOutput(false);
|
||||
$v->setRawDataPath('/var/www/website/www/protected/data/git_graph_raw.dat');
|
||||
$v->setFinDataPath('/var/www/website/www/protected/data/git_graph_data.dat');
|
||||
$v->setToken(file_get_contents('/var/www/website/www/protected/commands/github.token.secret'));
|
||||
|
||||
//##########################################################
|
||||
|
||||
$v->addSecondaryUsername("Sam-Development");
|
||||
$v->addSecondaryRepository("Anastron/ColorRunner");
|
||||
|
||||
//##########################################################
|
||||
|
||||
//$v->setToken(file_get_contents('api_token.secret'));
|
||||
$v->collect();
|
||||
|
||||
//##########################################################
|
||||
|
||||
$v->generateAndSave();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user