mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:37 +02:00
Make ESLint happy and use the existing style where possible.
This commit is contained in:
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
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user