thali/install/install.js
function getReleaseConfig() {
  var configFileName = path.join(__dirname, '..', 'package.json');

  return fs.readFileAsync(configFileName, 'utf-8')
    .then(function (data) {
      var conf;
      try {
        conf = JSON.parse(data);
        if (conf && conf.thaliInstall) {
          return conf.thaliInstall;
        }
        return Promise.reject('Configuration error!');
      }
      catch (err) {
        return Promise.reject(new Error(err));
      }
    });
}
function getReleaseConfig() {
  var configFileName = path.join(__dirname, '..', 'package.json');

  return fs.readFileAsync(configFileName, 'utf-8')
    .then(function (data) {
      var conf;
      try {
        conf = JSON.parse(data);
        if (conf && conf.thaliInstall) {
          return conf.thaliInstall;
        }
        return Promise.reject('Configuration error!');
      }
      catch (err) {
        return Promise.reject(new Error(err));
      }
    });
}
function getReleaseConfig ( ) { var configFileName = path . join ( __dirname , '..' , 'package.json' ) ; return fs . readFileAsync ( configFileName , 'utf-8' ) . then ( function ( data ) { var conf ; try { conf = JSON . parse ( data ) ; if ( conf && conf . thaliInstall ) { return conf . thaliInstall ; } return Promise . reject ( 'Configuration error!' ) ; } catch ( err ) { return Promise . reject ( new Error ( err ) ) ; } } ) ; }
This method is used to retrieve the release configuration data
stored in the releaseConfig.json.

@returns {Promise} Returns release config
This method is used to retrieve the release configuration data stored in the releaseConfig . json .