modules/generator/environment/environment.js
/**
   * Make sure the Environment present expected methods if an old version is
   * passed to a Generator.
   * @param  {Environment} env
   * @return {Environment} The updated env
   */
Make sure the Environment present expected methods if an old version is
passed to a Generator.
@param  {Environment} env
@return {Environment} The updated env
Make sure the Environment present expected methods if an old version is passed to a Generator . @param { Environment } env @return { Environment } The updated env
static enforceUpdate(env = {}) {
    if (!env.adapter) {
      env.adapter = new TerminalAdapter()
    }
    if (!env.sharedFs) {
      env.sharedFs = memFs.create()
    }
    return env
  }
static enforceUpdate ( env = { } ) { if ( ! env . adapter ) { env . adapter = new TerminalAdapter ( ) } if ( ! env . sharedFs ) { env . sharedFs = memFs . create ( ) } return env }
Make sure the Environment present expected methods if an old version is
 passed to a Generator.
Make sure the Environment present expected methods if an old version is passed to a Generator .