@@ -60,8 +60,8 @@ struct AWSLambdaPackager: CommandPlugin {
60
60
stackName : configuration. stackName,
61
61
verboseLogging: configuration. verboseLogging)
62
62
}
63
-
64
- // list endpoints
63
+
64
+ // list endpoints
65
65
if !configuration. noList {
66
66
let output = try self . listEndpoints ( samExecutablePath: samExecutablePath,
67
67
samDeploymentDescriptorFilePath: samDeploymentDescriptorFilePath,
@@ -223,11 +223,11 @@ struct AWSLambdaPackager: CommandPlugin {
223
223
throw DeployerPluginError . error ( error)
224
224
} catch let error as Utils . ProcessError {
225
225
if case . processFailed( _, let errorCode, let output) = error {
226
- if errorCode == 1 && output. contains ( " Error: No changes to deploy. " ) {
227
- print ( " There is no changes to deploy. " )
226
+ if errorCode == 1 && output. contains ( " Error: No changes to deploy. " ) {
227
+ print ( " There is no changes to deploy. " )
228
228
} else {
229
229
print ( " ProcessError : \( error) " )
230
- throw DeployerPluginError . error ( error)
230
+ throw DeployerPluginError . error ( error)
231
231
}
232
232
}
233
233
} catch {
@@ -237,9 +237,9 @@ struct AWSLambdaPackager: CommandPlugin {
237
237
}
238
238
239
239
private func listEndpoints( samExecutablePath: Path ,
240
- samDeploymentDescriptorFilePath: String ,
241
- stackName: String ,
242
- verboseLogging: Bool ) throws -> String {
240
+ samDeploymentDescriptorFilePath: String ,
241
+ stackName: String ,
242
+ verboseLogging: Bool ) throws -> String {
243
243
244
244
//TODO: check if there is a samconfig.toml file.
245
245
// when there is no file, generate one with default data or data collected from params
@@ -251,18 +251,18 @@ struct AWSLambdaPackager: CommandPlugin {
251
251
do {
252
252
253
253
return try Utils . execute (
254
- executable: samExecutablePath,
255
- arguments: [ " list " , " endpoints " ,
256
- " -t " , samDeploymentDescriptorFilePath,
257
- " --stack-name " , stackName,
258
- " --output " , " json " ] ,
259
- logLevel: verboseLogging ? . debug : . silent)
254
+ executable: samExecutablePath,
255
+ arguments: [ " list " , " endpoints " ,
256
+ " -t " , samDeploymentDescriptorFilePath,
257
+ " --stack-name " , stackName,
258
+ " --output " , " json " ] ,
259
+ logLevel: verboseLogging ? . debug : . silent)
260
260
} catch {
261
261
print ( " Unexpected error : \( error) " )
262
262
throw DeployerPluginError . error ( error)
263
263
}
264
264
}
265
-
265
+
266
266
private func displayHelpMessage( ) {
267
267
print ( """
268
268
OVERVIEW: A swift plugin to deploy your Lambda function on your AWS account.
@@ -326,8 +326,8 @@ private struct Configuration: CustomStringConvertible {
326
326
327
327
// define deployment option
328
328
self . noDeploy = nodeployArgument
329
-
330
- // define control on list endpoints after a deployment
329
+
330
+ // define control on list endpoints after a deployment
331
331
self . noList = noListArgument
332
332
333
333
// define logging verbosity
@@ -362,7 +362,7 @@ private struct Configuration: CustomStringConvertible {
362
362
if let stackName = stackNameArgument. first {
363
363
self . stackName = stackName
364
364
} else {
365
- self . stackName = context. package . displayName
365
+ self . stackName = context. package . displayName
366
366
}
367
367
368
368
if self . verboseLogging {
0 commit comments