tools/setup/performer.js
function (deployPath) {
  const envFilePath = setupHelper.setupFolderAbsolutePath() + '/' + setupConfig.env_vars_file
    , clearCacheOfExpr = /(openst-platform\/config\/)|(openst-platform\/lib\/)|(openst-platform\/services\/)/;

  return new Promise(function (onResolve, onReject) {
    // source env
    shellSource(envFilePath, async function (err) {
      if (err) {
        throw err;
      }
      Object.keys(require.cache).forEach(function (key) {
        if (key.search(clearCacheOfExpr) !== -1) {
          delete require.cache[key];
        }
      });

      const setupHelper = require(deployPath);
      return onResolve(await setupHelper.perform());
    });
  });

}
function (deployPath) {
  const envFilePath = setupHelper.setupFolderAbsolutePath() + '/' + setupConfig.env_vars_file
    , clearCacheOfExpr = /(openst-platform\/config\/)|(openst-platform\/lib\/)|(openst-platform\/services\/)/;

  return new Promise(function (onResolve, onReject) {
    // source env
    shellSource(envFilePath, async function (err) {
      if (err) {
        throw err;
      }
      Object.keys(require.cache).forEach(function (key) {
        if (key.search(clearCacheOfExpr) !== -1) {
          delete require.cache[key];
        }
      });

      const setupHelper = require(deployPath);
      return onResolve(await setupHelper.perform());
    });
  });

}
function ( deployPath ) { const envFilePath = setupHelper . setupFolderAbsolutePath ( ) + '/' + setupConfig . env_vars_file , clearCacheOfExpr = / (openst-platform\/config\/)|(openst-platform\/lib\/)|(openst-platform\/services\/) / ; return new Promise ( function ( onResolve , onReject ) { // source env shellSource ( envFilePath , async function ( err ) { if ( err ) { throw err ; } Object . keys ( require . cache ) . forEach ( function ( key ) { if ( key . search ( clearCacheOfExpr ) !== - 1 ) { delete require . cache [ key ] ; } } ) ; const setupHelper = require ( deployPath ) ; return onResolve ( await setupHelper . perform ( ) ) ; } ) ; } ) ; }
Run the deployer helper service

@param {string} deployPath - contract deployment script path

@return {promise}
Run the deployer helper service