Ejemplo n.º 1
0
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function handle()
 {
     $version = $this->argument('version');
     $this->info('Notifying Sentry of new version: ' . $version);
     try {
         $this->centurian->release($version);
     } catch (Exception $e) {
         $this->error('There was an error making your release.');
         return;
     }
     $this->info('Version ' . $version . ' has been released.');
 }
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function handle()
 {
     $this->info('Fetching versions...');
     try {
         $releases = $this->centurian->getReleases();
     } catch (Exception $e) {
         $this->error('There was an error contacting the API.');
         return;
     }
     foreach ($releases as $release) {
         $this->info('Release: ' . $release->version);
     }
 }