deploy() {
    return this.getLocalResources()
        .then(() => {
          const cfCliPath = path.normalize(this.project.deployer.sapCloudPlatform.cloudFoundry.cliPath || '');
          const cfLogin = spawn(this.buildLoginCommand(this.project), {shell: true, cwd: cfCliPath});
          return this.promisifyChildProcess(cfLogin, this.logger)
              .then(() => {
                const cfPush = spawn(this.buildPushCommand(this.project.deployer.sourcePath), {shell: true, cwd: cfCliPath});
                return this.promisifyChildProcess(cfPush, this.logger);
              });
        });
  }
/**
   * Deploys the project to a remote SAP Cloud Platform, Cloud Foundry environment
   *
   * @return {Promise} Returns promise with deployment results
   */
Deploys the project to a remote SAP Cloud Platform, Cloud Foundry environment
@return {Promise} Returns promise with deployment results
Deploys the project to a remote SAP Cloud Platform Cloud Foundry environment @return { Promise } Returns promise with deployment results
deploy() {
    return this.getLocalResources()
        .then(() => {
          const cfCliPath = path.normalize(this.project.deployer.sapCloudPlatform.cloudFoundry.cliPath || '');
          const cfLogin = spawn(this.buildLoginCommand(this.project), {shell: true, cwd: cfCliPath});
          return this.promisifyChildProcess(cfLogin, this.logger)
              .then(() => {
                const cfPush = spawn(this.buildPushCommand(this.project.deployer.sourcePath), {shell: true, cwd: cfCliPath});
                return this.promisifyChildProcess(cfPush, this.logger);
              });
        });
  }
deploy ( ) { return this . getLocalResources ( ) . then ( ( ) => { const cfCliPath = path . normalize ( this . project . deployer . sapCloudPlatform . cloudFoundry . cliPath || '' ) ; const cfLogin = spawn ( this . buildLoginCommand ( this . project ) , { shell : true , cwd : cfCliPath } ) ; return this . promisifyChildProcess ( cfLogin , this . logger ) . then ( ( ) => { const cfPush = spawn ( this . buildPushCommand ( this . project . deployer . sourcePath ) , { shell : true , cwd : cfCliPath } ) ; return this . promisifyChildProcess ( cfPush , this . logger ) ; } ) ; } ) ; }
Deploys the project to a remote SAP Cloud Platform, Cloud Foundry environment
 @return {Promise} Returns promise with deployment results
Deploys the project to a remote SAP Cloud Platform Cloud Foundry environment @return { Promise } Returns promise with deployment results