From 7c101b4e499c9674472d4e3996175b9be964442c Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Thu, 5 Jul 2018 09:23:17 +0200 Subject: [PATCH] - Quick command to update galaxies --- app/Console/Command/AdminShell.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Console/Command/AdminShell.php b/app/Console/Command/AdminShell.php index 86aca7451..cbb6d8e0b 100644 --- a/app/Console/Command/AdminShell.php +++ b/app/Console/Command/AdminShell.php @@ -2,7 +2,7 @@ App::uses('AppShell', 'Console/Command'); class AdminShell extends AppShell { - public $uses = array('Event', 'Post', 'Attribute', 'Job', 'User', 'Task', 'Whitelist', 'Server', 'Organisation', 'AdminSetting'); + public $uses = array('Event', 'Post', 'Attribute', 'Job', 'User', 'Task', 'Whitelist', 'Server', 'Organisation', 'AdminSetting', 'Galaxy'); public function jobGenerateCorrelation() { $jobId = $this->args[0]; @@ -34,6 +34,15 @@ class AdminShell extends AppShell $this->ShadowAttribute->generateCorrelation($jobId); } + public function updateGalaxies() { + $result = $this->Galaxy->update($force); + if ($result) { + echo 'Galaxies updated'; + } else { + echo 'Could not update Galaxies'; + } + } + public function jobUpgrade24() { $jobId = $this->args[0]; $user_id = $this->args[1];