process.on('exit', function () {
		// sadly, this will never be called on Windows if the user presses ctrl+c
		appc.analytics.send(appc.util.mix({
			appId: pkginfo.about.id,
			appName: pkginfo.about.name,
			appGuid: 'cf5c67ed-1c3b-494b-afe0-01b958ef0f40',
			titaniumHomeDir: path.join('~', '.titanium'),
			version: pkginfo.version,
			deployType: 'production',
			httpProxyServer: config.cli.httpProxyServer,
			rejectUnauthorized: config.get('cli.rejectUnauthorized', true),
			analyticsUrl: config.get('cli.analytics.url'),
			showErrors: config.get('cli.analytics.showErrors', false)
		}, appc.auth.status()));
	});
Beispiel #2
0
	cli.go(function () {
		if (cli.command && cli.command.conf && !cli.command.conf.skipSendingAnalytics) {
			// send the analytics
			appc.analytics.send(appc.util.mix(
				{
					appId: pkginfo.about.id,
					appName: pkginfo.about.name,
					appGuid: 'cf5c67ed-1c3b-494b-afe0-01b958ef0f40',
					titaniumHomeDir: path.join('~', '.titanium'),
					version: pkginfo.version,
					deployType: 'production',
					httpProxyServer: config.cli.httpProxyServer,
					rejectUnauthorized: config.get('cli.rejectUnauthorized', true),
					analyticsUrl: config.get('cli.analytics.url'),
					logger: logger,
					debug: config.get('cli.analytics.debug', false)
				},
				appc.auth.status() // loggedIn, uid, guid, email, cookie
			));
		}
	});