Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] Continued to stub out core jitsu functionality. Now storing and…
… prompting for username / password pair on initial start
- Loading branch information
Showing
8 changed files
with
350 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env node | ||
|
||
require.paths.unshift(require('path').join(__dirname, '..', 'lib')); | ||
|
||
var eyes = require('eyes'), | ||
argv = require('optimist').argv, | ||
jitsu = require('jitsu'); | ||
|
||
var resources = [ | ||
'apps', | ||
'snapshots' | ||
]; | ||
|
||
var operations = [ | ||
'password', | ||
|
||
]; | ||
|
||
jitsu.start(argv._.join('')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* log.js: Tools for configuring winston in jitsu. | ||
* | ||
* (C) 2010, Nodejitsu Inc. | ||
* | ||
*/ | ||
|
||
var winston = require('winston'); | ||
|
||
var config = exports.config = { | ||
levels: { | ||
silly: 0, | ||
input: 1, | ||
verbose: 2, | ||
prompt: 3, | ||
info: 4, | ||
warn: 5, | ||
debug: 6, | ||
error: 7 | ||
}, | ||
colors: { | ||
silly: 'magenta', | ||
input: 'grey', | ||
verbose: 'cyan', | ||
prompt: 'grey', | ||
info: 'green', | ||
warn: 'yellow', | ||
debug: 'blue', | ||
error: 'red' | ||
} | ||
}; | ||
|
||
// | ||
// Configure winston with the levels and colors that we've defined | ||
// | ||
winston.emitErrs = false; | ||
winston.defaultTransports().console.colorize = true; | ||
winston.defaultTransports().console.timestamp = false; | ||
winston.padLevels = true; | ||
winston.setLevels(config.levels); | ||
winston.addColors(config.colors); | ||
|
||
// | ||
// TODO (indexzero): Load this in config.js | ||
// | ||
winston.defaultTransports().console.level = 'silly'; |
Oops, something went wrong.