code: function getAppFolders(input, deploymentApplicationType) {
      const destinationPath = this.destinationPath(input);
      const files = shelljs.ls('-l', destinationPath);
      const appsFolders = [];
  
      files.forEach(file => {
          if (file.isDirectory()) {
              if (shelljs.test('-f', `${destinationPath}/${file.name}/.yo-rc.json`)) {
                  try {
                      const fileData = this.fs.readJSON(`${destinationPath}/${file.name}/.yo-rc.json`);
                      if (
                          fileData['generator-jhipster'].baseName !== undefined &&
                          (deploymentApplicationType === undefined ||
                              deploymentApplicationType === fileData['generator-jhipster'].applicationType ||
                              (deploymentApplicationType === 'microservice' &&
                                  fileData['generator-jhipster'].applicationType === 'gateway') ||
                              (deploymentApplicationType === 'microservice' && fileData['generator-jhipster'].applicationType === 'uaa'))
                      ) {
                          appsFolders.push(file.name.match(/([^/]*)\/*$/)[1]);
                      }
                  } catch (err) {
                      this.log(chalk.red(`${file}: this .yo-rc.json can't be read`));
                      this.debug('Error:', err);
                  }
              }
          }
      });
  
      return appsFolders;
  }
docs: Get App Folders
  @param input path to join to destination path
  @param deploymentApplicationType type of application being composed
  @returns {Array} array of string representing app folders