public function update($version) {
    $tasks = $this->restore($version);

    if ($tasks) {
      $tasks
        ->addTask(
          $this->taskDrush('updatedb')->option('yes')
        )
        ->addTask(
          $this->taskDrupal('update:lightning')->option('no-interaction')->arg($version)
        );
    }
    return $tasks;
  }
public function update($version) {
    $tasks = $this->restore($version);

    if ($tasks) {
      $tasks
        ->addTask(
          $this->taskDrush('updatedb')->option('yes')
        )
        ->addTask(
          $this->taskDrupal('update:lightning')->option('no-interaction')->arg($version)
        );
    }
    return $tasks;
  }
public function update ( $ version ) { $ tasks = $ this -> restore ( $ version ) ; if ( $ tasks ) { $ tasks -> addTask ( $ this -> taskDrush ( 'updatedb' ) -> option ( 'yes' ) ) -> addTask ( $ this -> taskDrupal ( 'update:lightning' ) -> option ( 'no-interaction' ) -> arg ( $ version ) ) ; } return $ tasks ; }
Updates from a previous version of Lightning.

@param string $version
The version from which to update.

@see ::restore()

@return \Robo\Contract\TaskInterface|NULL
The task(s) to run, or NULL if the specified version is invalid.
Updates from a previous version of Lightning .