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:
parent
3d6ddf79dd
commit
467ed01903
2 changed files with 55 additions and 44 deletions
17
lib/cli.js
17
lib/cli.js
|
@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue