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

Make ESLint happy and use the existing style where possible.

This commit is contained in:
Simo Kinnunen 2015-11-06 02:31:28 +09:00
parent 3d6ddf79dd
commit 467ed01903
2 changed files with 55 additions and 44 deletions

View file

@ -764,19 +764,24 @@ program
, String)
.option('--profile <name>'
, 'your aws credentials profile name'
, String
, 'stf-storage')
, String)
.option('--endpoint <endpoint>'
, 'your buckets endpoint'
, String
, 's3-ap-northeast-1.amazonaws.com')
, String)
.action(function(options) {
require('./units/storage/amazons3')({
if (!options.profile) {
this.missingArgument('--profile')
}
if (!options.endpoint) {
this.missingArgument('--endpoint')
}
require('./units/storage/s3')({
port: options.port
, profile: options.profile
, bucket: options.bucket
, endpoint: options.endpoint
, expires: options.expires
})
})