tasks/lib/simulator.js
function uploadIndexPages(pagePaths, config, options, callback) {
    var requestOptions = {
      method: 'POST',
      url: options.airport + '/dev/' + config.appId + '/simulator',
      form: {}
    };

    // Attach the files as multi-part
    var request = api(config, requestOptions, callback);
    var form = request.form();

    pagePaths.forEach(function(pagePath) {
      grunt.log.debug("Uploading " + pagePath);
      form.append(path.basename(pagePath, '.html'), fs.createReadStream(pagePath));
    });
  }
function uploadIndexPages(pagePaths, config, options, callback) {
    var requestOptions = {
      method: 'POST',
      url: options.airport + '/dev/' + config.appId + '/simulator',
      form: {}
    };

    // Attach the files as multi-part
    var request = api(config, requestOptions, callback);
    var form = request.form();

    pagePaths.forEach(function(pagePath) {
      grunt.log.debug("Uploading " + pagePath);
      form.append(path.basename(pagePath, '.html'), fs.createReadStream(pagePath));
    });
  }
function uploadIndexPages ( pagePaths , config , options , callback ) { var requestOptions = { method : 'POST' , url : options . airport + '/dev/' + config . appId + '/simulator' , form : { } } ; // Attach the files as multi-part var request = api ( config , requestOptions , callback ) ; var form = request . form ( ) ; pagePaths . forEach ( function ( pagePath ) { grunt . log . debug ( "Uploading " + pagePath ) ; form . append ( path . basename ( pagePath , '.html' ) , fs . createReadStream ( pagePath ) ) ; } ) ; }
Upload the indexx.html file to the server.
Upload the indexx . html file to the server .