Skip to content

Commit

Permalink
Merge pull request #12 from spekulatius/run-on-dev-build
Browse files Browse the repository at this point in the history
Run by default on dev/build
  • Loading branch information
spekulatius committed Feb 21, 2016
2 parents 354c16c + faad73b commit d3a86a3
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions code/models/ComposerUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class ComposerUpdate extends DataObject
* @var array
*/
private static $db = array(
'Name' => 'Varchar(255)',
'Installed' => 'Varchar(255)',
'Available' => 'Varchar(255)',
'Name' => 'Varchar(255)',
'Installed' => 'Varchar(255)',
'Available' => 'Varchar(255)',
);

/**
Expand All @@ -33,4 +33,15 @@ class ComposerUpdate extends DataObject
* @var string
*/
public $jobName = 'CheckComposerUpdatesJob';

/**
* self update on dev/build
*/
public function requireDefaultRecords()
{
parent::requireDefaultRecords();

// add a queuedjob on dev/build
singleton('QueuedJobService')->queueJob(new CheckComposerUpdatesJob());
}
}

0 comments on commit d3a86a3

Please sign in to comment.