bin/waterlock-auth-methods.js
function(src, dest){
      self.logger.warn('File at '+dest+' exists, overwrite?');
      
      rl.question('(yN) ', function(answer){
        switch(answer.toLowerCase()){
          case 'y':
            this.copy(src, dest); 
            this.triggerNext(); 
            break; 
          case 'n':
            this.triggerNext(); 
            break; 
          default:
            this.waitForResponse(src, dest); 
            break; 
        }
      }.bind(this)); 
    }
function(src, dest){
      self.logger.warn('File at '+dest+' exists, overwrite?');
      
      rl.question('(yN) ', function(answer){
        switch(answer.toLowerCase()){
          case 'y':
            this.copy(src, dest); 
            this.triggerNext(); 
            break; 
          case 'n':
            this.triggerNext(); 
            break; 
          default:
            this.waitForResponse(src, dest); 
            break; 
        }
      }.bind(this)); 
    }
function ( src , dest ) { self . logger . warn ( 'File at ' + dest + ' exists, overwrite?' ) ; rl . question ( '(yN) ' , function ( answer ) { switch ( answer . toLowerCase ( ) ) { case 'y' : this . copy ( src , dest ) ; this . triggerNext ( ) ; break ; case 'n' : this . triggerNext ( ) ; break ; default : this . waitForResponse ( src , dest ) ; break ; } } . bind ( this ) ) ; }
prompts the user if we can overwrite the destination file

@param  {String} src  the source file
@param  {String} dest the destination file
prompts the user if we can overwrite the destination file