tasks/bump.js
function printMsg ( msgId, data ) {
    var outputFn;

    if ( messages.hasOwnProperty( msgId) ) {
      switch ( msgId.match( /^[A-Z]+/ )[0] ) {
        case 'INFO':
          outputFn = grunt.log.writeln;
          break;

        case 'VERBOSE':
          outputFn = grunt.verbose.writeln;
          break;

        case 'DEBUG':
          outputFn = grunt.log.debug;
          break;

        default:
          outputFn = grunt.fail.warn;
      } // switch

      outputFn( grunt.template.process( messages[ msgId ], { data: data } ) );
    }
  }
function printMsg ( msgId, data ) {
    var outputFn;

    if ( messages.hasOwnProperty( msgId) ) {
      switch ( msgId.match( /^[A-Z]+/ )[0] ) {
        case 'INFO':
          outputFn = grunt.log.writeln;
          break;

        case 'VERBOSE':
          outputFn = grunt.verbose.writeln;
          break;

        case 'DEBUG':
          outputFn = grunt.log.debug;
          break;

        default:
          outputFn = grunt.fail.warn;
      } // switch

      outputFn( grunt.template.process( messages[ msgId ], { data: data } ) );
    }
  }
function printMsg ( msgId , data ) { var outputFn ; if ( messages . hasOwnProperty ( msgId ) ) { switch ( msgId . match ( / ^[A-Z]+ / ) [ 0 ] ) { case 'INFO' : outputFn = grunt . log . writeln ; break ; case 'VERBOSE' : outputFn = grunt . verbose . writeln ; break ; case 'DEBUG' : outputFn = grunt . log . debug ; break ; default : outputFn = grunt . fail . warn ; } // switch outputFn ( grunt . template . process ( messages [ msgId ] , { data : data } ) ) ; } }
Prints out a message according to the type of message ID.
Prints out a message according to the type of message ID .