/** * Execute the command. */ public function handle() { $prefix = $this->option('prefixVersionWith'); $suffix = $this->option('suffixVersionWith'); $currentVersion = $this->updater->source()->getVersionInstalled($prefix, $suffix); $isAvail = $this->updater->source()->isNewVersionAvailable($currentVersion); if ($isAvail) { $newVersion = $this->updater->source()->getVersionAvailable(); $this->info('A new version [' . $newVersion . '] is available.'); } else { $this->comment('There\'s no new version available.'); } }
public function download() { $this->updater->source()->fetch(); }