tasks/titanium.js
function ensureLogin(callback) {
		exec('"' + getTitaniumPath() + '" status -o json', function(err, stdout, stderr) {
			if (err) { return callback(err); }
			if (!JSON.parse(stdout).loggedIn) {
				grunt.fail.fatal([
					'You must be logged in to use grunt-titanium. Use `titanium login`.'
				]);
			}
			return callback();
		});
	}
function ensureLogin(callback) {
		exec('"' + getTitaniumPath() + '" status -o json', function(err, stdout, stderr) {
			if (err) { return callback(err); }
			if (!JSON.parse(stdout).loggedIn) {
				grunt.fail.fatal([
					'You must be logged in to use grunt-titanium. Use `titanium login`.'
				]);
			}
			return callback();
		});
	}
function ensureLogin ( callback ) { exec ( '"' + getTitaniumPath ( ) + '" status -o json' , function ( err , stdout , stderr ) { if ( err ) { return callback ( err ) ; } if ( ! JSON . parse ( stdout ) . loggedIn ) { grunt . fail . fatal ( [ 'You must be logged in to use grunt-titanium. Use `titanium login`.' ] ) ; } return callback ( ) ; } ) ; }
ensure appc user is logged in
ensure appc user is logged in