Skip to content

Commit

Permalink
Merge pull request #1797 from twokul/silent-mode
Browse files Browse the repository at this point in the history
Silent analytics
  • Loading branch information
rwjblue committed Aug 28, 2014
2 parents abe25ad + e676bc2 commit 0e3a5e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ var CLI = require('./cli');
var Yam = require('yam');
var packageConfig = require('../../package.json');

var version = packageConfig.version;
var name = packageConfig.name;
var trackingCode = packageConfig.trackingCode;
var version = packageConfig.version;
var name = packageConfig.name;
var trackingCode = packageConfig.trackingCode;

// Options: Array cliArgs, Stream inputStream, Stream outputStream
module.exports = cli;
Expand All @@ -27,14 +27,15 @@ function cli(options) {
outputStream: options.outputStream
});

var config = new Yam('ember-cli');

var leek = new Leek({
trackingCode: trackingCode,
name: name,
version: version
globalName: name,
version: version,
silent: config.get('disableAnalytics')
});

var config = new Yam('ember-cli');

var project = Project.closest(process.cwd())
.catch(function(reason) {
if (reason instanceof Project.NotFoundError) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"inflection": "^1.4.0",
"inquirer": "0.5.1",
"js-string-escape": "^1.0.0",
"leek": "0.0.6",
"leek": "0.0.12",
"lodash-node": "^2.4.1",
"minimatch": "^1.0.0",
"morgan": "^1.2.2",
Expand All @@ -136,7 +136,7 @@
"tiny-lr": "0.1.0",
"tmp-sync": "^1.0.1",
"walk-sync": "0.1.2",
"yam": "0.0.13"
"yam": "0.0.14"
},
"devDependencies": {
"chai": "^1.9.1",
Expand Down

0 comments on commit 0e3a5e8

Please sign in to comment.