generators/app/index.js
function () {
      if (options['offline']) {
        options.drupalDistroRelease = '0.0.0';
      }
      else {
        // Find the latest stable release for the Drupal distro version.
        var done = this.async();
        options.drupalDistro.releaseVersion(options.drupalDistroVersion, done, function(err, version, done) {
          if (err) {
            this.env.error('Could not retrieve distribution project info: ' + err);
            return done(err);
          }
          options.drupalDistroRelease = version;
          done();
        }.bind(this));
      }
    }
function () {
      if (options['offline']) {
        options.drupalDistroRelease = '0.0.0';
      }
      else {
        // Find the latest stable release for the Drupal distro version.
        var done = this.async();
        options.drupalDistro.releaseVersion(options.drupalDistroVersion, done, function(err, version, done) {
          if (err) {
            this.env.error('Could not retrieve distribution project info: ' + err);
            return done(err);
          }
          options.drupalDistroRelease = version;
          done();
        }.bind(this));
      }
    }
function ( ) { if ( options [ 'offline' ] ) { options . drupalDistroRelease = '0.0.0' ; } else { // Find the latest stable release for the Drupal distro version. var done = this . async ( ) ; options . drupalDistro . releaseVersion ( options . drupalDistroVersion , done , function ( err , version , done ) { if ( err ) { this . env . error ( 'Could not retrieve distribution project info: ' + err ) ; return done ( err ) ; } options . drupalDistroRelease = version ; done ( ) ; } . bind ( this ) ) ; } }
Determine the latest stable release for the requested Drupal core version.
Determine the latest stable release for the requested Drupal core version .