1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

fixed cli.js as review comment.

This commit is contained in:
tchibana 2015-10-21 23:10:09 +09:00
parent bbbd8f688c
commit d6c0caeb66

View file

@ -763,7 +763,7 @@ program
, 'your s3 bucket name' , 'your s3 bucket name'
, String) , String)
.option('--profile <name>' .option('--profile <name>'
, 'your aws credentions profile name' , 'your aws credentials profile name'
, String , String
, 'stf-storage') , 'stf-storage')
.option('--endpoint <endpoint>' .option('--endpoint <endpoint>'
@ -774,7 +774,7 @@ program
require('./units/storage/amazons3')({ require('./units/storage/amazons3')({
port: options.port port: options.port
, profile: options.profile , profile: options.profile
, Bucket: options.bucket , bucket: options.bucket
, endpoint: options.endpoint , endpoint: options.endpoint
, expires: options.expires , expires: options.expires
}) })
@ -1003,19 +1003,6 @@ program
, [600, 800]) , [600, 800])
.option('--mute-master' .option('--mute-master'
, 'whether to mute master volume when devices are being used') , 'whether to mute master volume when devices are being used')
.option('--use-s3'
, 'use amazon s3')
.option('--s3-bucket <bucketname>'
, 'your Bucket name'
, String)
.option('--s3-profile <s3profile>'
, 'aws credential Profile name'
, String
, 'stf-storage')
.option('--s3-endpoint <s3endpoint>'
, 's3 endpoint'
, String
, 's3-ap-northeast-1.amazonaws.com')
.option('--lock-rotation' .option('--lock-rotation'
, 'whether to lock rotation when devices are being used') , 'whether to lock rotation when devices are being used')
.action(function(serials, options) { .action(function(serials, options) {
@ -1134,7 +1121,7 @@ program
]) ])
// storage // storage
, procutil.fork(__filename, [ , procutil.fork(__filename, [
util.format('storage-%s', options.storageType) util.format('storage-%s', options.storageType)
, '--port', options.storagePort , '--port', options.storagePort
].concat(JSON.parse(options.storageOptions))) ].concat(JSON.parse(options.storageOptions)))