tasks/releasebuild.js
function gitTag() {
      return function() {
        var deferred = Q.defer();

        if (!grunt.option('version')) {
          throw new Error('Error in step [Git tag]. Version is not defined.');
        }
        Q.fcall(command(format('git tag -a v%s -m \'%s\'', grunt.option('version'), options.tag.replace('%v', grunt.option('version'))), 'Git tag'))
        //Q.fcall(command(format('echo "git tag -a v%s -m \'%s\'"', grunt.option('version'), options.tag.replace('%v', grunt.option('version'))), 'Git tag', false))//TODO:temp
          .then(function( data ) {
            deferred.resolve(data);
          })
          .catch(function( err ) {
            deferred.reject(err);
          });
        return deferred.promise;
      };
    }
function gitTag() {
      return function() {
        var deferred = Q.defer();

        if (!grunt.option('version')) {
          throw new Error('Error in step [Git tag]. Version is not defined.');
        }
        Q.fcall(command(format('git tag -a v%s -m \'%s\'', grunt.option('version'), options.tag.replace('%v', grunt.option('version'))), 'Git tag'))
        //Q.fcall(command(format('echo "git tag -a v%s -m \'%s\'"', grunt.option('version'), options.tag.replace('%v', grunt.option('version'))), 'Git tag', false))//TODO:temp
          .then(function( data ) {
            deferred.resolve(data);
          })
          .catch(function( err ) {
            deferred.reject(err);
          });
        return deferred.promise;
      };
    }
function gitTag ( ) { return function ( ) { var deferred = Q . defer ( ) ; if ( ! grunt . option ( 'version' ) ) { throw new Error ( 'Error in step [Git tag]. Version is not defined.' ) ; } Q . fcall ( command ( format ( 'git tag -a v%s -m \'%s\'' , grunt . option ( 'version' ) , options . tag . replace ( '%v' , grunt . option ( 'version' ) ) ) , 'Git tag' ) ) //Q.fcall(command(format('echo "git tag -a v%s -m \'%s\'"', grunt.option('version'), options.tag.replace('%v', grunt.option('version'))), 'Git tag', false))//TODO:temp . then ( function ( data ) { deferred . resolve ( data ) ; } ) . catch ( function ( err ) { deferred . reject ( err ) ; } ) ; return deferred . promise ; } ; }
Tag the new version
@returns {Function}
Tag the new version