--- /dev/null
+<?php
+
+class UpdateCommand extends Command {
+
+ public function getDescription(){
+ return "Vérifie que l'instance est à jour sur le serveur et la met à jour sinon";
+ }
+
+ public function go(){
+ $this->verifInit();
+ $uuid = $this->getAlloUUID();
+ $info = $this->getAlloServeur()->applianceInfo($uuid);
+
+ $fqdn = $info['internal_fqdn']['value'];
+
+ $content = $this->getInfoFromInstance($fqdn);
+
+
+ $disques=`blkid /dev/sd* | sed 's/\"//g'`;
+ $os = php_uname('s');
+
+ $result = $this->getAlloServeur()->updateInstance($uuid,$content['produit'],$content['version'],$os,$disques);
+ echo $result."\n";
+
+ }
+
+}
\ No newline at end of file