public ClusterConfig readClusterConfigFromMinimesosFile(){
  InputStream clusterConfigFile=MesosCluster.getInputStream(getClusterConfigPath());
  if (clusterConfigFile != null) {
    ConfigParser configParser=new ConfigParser();
    try {
      return configParser.parse(IOUtils.toString(clusterConfigFile));
    }
 catch (    Exception e) {
      String msg=String.format("Failed to load cluster configuration from %s: %s",getClusterConfigPath(),e.getMessage());
      throw new MinimesosException(msg,e);
    }
  }
  throw new MinimesosException("No minimesosFile found in current directory. Please generate one with 'minimesos init'");
}

public ClusterConfig readClusterConfigFromMinimesosFile ( ) { InputStream clusterConfigFile = MesosCluster . getInputStream ( getClusterConfigPath ( ) ) ; if ( clusterConfigFile != null ) { ConfigParser configParser = new ConfigParser ( ) ; try { return configParser . parse ( IOUtils . toString ( clusterConfigFile ) ) ; } catch ( Exception e ) { String msg = String . format ( "Failed to load cluster configuration from %s: %s" , getClusterConfigPath ( ) , e . getMessage ( ) ) ; throw new MinimesosException ( msg , e ) ; } } throw new MinimesosException ( "No minimesosFile found in current directory. Please generate one with 'minimesos init'" ) ; }
reads clusterconfig from minimesosfile .
