call('nntmux:git');
if ($output === 'Already up-to-date.') {
$this->info($output);
} else {
$status = $this->call('nntmux:composer');
if ($status) {
$this->error('Composer failed to update!!');
return false;
}
$fail = $this->call('nntmux:db');
if ($fail) {
$this->error('Db updating failed!!');
return 1;
}
}
$smarty = new Smarty();
$smarty->setCompileDir(config('ytake-laravel-smarty.compile_path'));
$cleared = $smarty->clearCompiledTemplate();
if ($cleared) {
$this->output->writeln('The Smarty compiled template cache has been cleaned for you');
} else {
$this->output->writeln(
'You should clear your Smarty compiled template cache at: '.
config('ytake-laravel-smarty.compile_path'). ''
);
}
} catch (\Exception $e) {
$this->error($e->getMessage());
}
}
}