mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
Fix all lib/ files with ESLint rules with 0 errors.
This commit is contained in:
19
lib/cli.js
19
lib/cli.js
@@ -903,7 +903,7 @@ program
|
||||
.description('migrates the database to the latest version')
|
||||
.action(function() {
|
||||
var log = logger.createLogger('cli:migrate')
|
||||
, db = require('./db')
|
||||
var db = require('./db')
|
||||
|
||||
db.setup()
|
||||
.then(function() {
|
||||
@@ -924,21 +924,21 @@ program
|
||||
, 1)
|
||||
.action(function(model, options) {
|
||||
var log = logger.createLogger('cli:generate-fake-device')
|
||||
, fake = require('./util/fakedevice')
|
||||
, n = options.number
|
||||
var fake = require('./util/fakedevice')
|
||||
var n = options.number
|
||||
|
||||
function next() {
|
||||
function nextDevice() {
|
||||
return fake.generate(model)
|
||||
.then(function(serial) {
|
||||
log.info('Created fake device "%s"', serial)
|
||||
|
||||
if (--n) {
|
||||
return next()
|
||||
return nextDevice()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
next()
|
||||
nextDevice()
|
||||
.then(function() {
|
||||
process.exit(0)
|
||||
})
|
||||
@@ -1069,7 +1069,7 @@ program
|
||||
, 'whether to lock rotation when devices are being used')
|
||||
.action(function(serials, options) {
|
||||
var log = logger.createLogger('cli:local')
|
||||
, procutil = require('./util/procutil')
|
||||
var procutil = require('./util/procutil')
|
||||
|
||||
// Each forked process waits for signals to stop, and so we run over the
|
||||
// default limit of 10. So, it's not a leak, but a refactor wouldn't hurt.
|
||||
@@ -1156,7 +1156,10 @@ program
|
||||
'http://%s:%d/auth/%s/'
|
||||
, options.publicIp
|
||||
, options.poorxyPort
|
||||
, ({oauth2: 'oauth', saml2: 'saml'}[options.authType]) || options.authType
|
||||
, {
|
||||
oauth2: 'oauth'
|
||||
, saml2: 'saml'
|
||||
}[options.authType] || options.authType
|
||||
)
|
||||
, '--websocket-url', util.format(
|
||||
'http://%s:%d/'
|
||||
|
||||
Reference in New Issue
Block a user