Skip to content

Commit bbacc2d

Browse files
committed
Add line breaks for all the function definitions
1 parent c8d8a4b commit bbacc2d

File tree

9 files changed

+73
-14
lines changed

9 files changed

+73
-14
lines changed

Diff for: compute/aws-ec2.js

+16-6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class EC2 {
1010
this._apiVersion = options.apiVersion;
1111
this._ec2 = new this._AWS.EC2({ apiVersion: this._apiVersion });
1212
}
13+
1314
/**
1415
* Create EC2 instance
1516
* @create
@@ -19,7 +20,7 @@ class EC2 {
1920
create(params, instanceParams) {
2021
// Create the instance
2122
return new Promise((resolve, reject) => {
22-
if (!params) reject(new Error('Provide params to EC2'));
23+
if (!params) reject(new Error("Provide params to EC2"));
2324

2425
this._ec2.runInstances(params, (err, data) => {
2526
if (err) reject(err);
@@ -31,18 +32,19 @@ class EC2 {
3132
Tags: [
3233
{
3334
Key: instanceParams.Key,
34-
Value: instanceParams.Value,
35-
},
36-
],
35+
Value: instanceParams.Value
36+
}
37+
]
3738
};
38-
this._ec2.createTags(ec2Params, (error) => {
39+
this._ec2.createTags(ec2Params, error => {
3940
if (error) reject(err);
4041

4142
resolve(instanceId);
4243
});
4344
});
4445
});
4546
}
47+
4648
/**
4749
* Describes one or more of your instances
4850
* @list
@@ -51,7 +53,11 @@ class EC2 {
5153
list(params) {
5254
return new Promise((resolve, reject) => {
5355
if (!params) {
54-
reject(new Error('Error: Supply params, find docs on http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2.html#describeInstances-property'));
56+
reject(
57+
new Error(
58+
"Error: Supply params, find docs on http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2.html#describeInstances-property"
59+
)
60+
);
5561
}
5662
this._ec2.describeInstances(params, (err, data) => {
5763
if (err) {
@@ -62,6 +68,7 @@ class EC2 {
6268
});
6369
});
6470
}
71+
6572
/**
6673
* Start instance
6774
* @start
@@ -78,6 +85,7 @@ class EC2 {
7885
});
7986
});
8087
}
88+
8189
/**
8290
* Stop instance
8391
* @stop
@@ -94,6 +102,7 @@ class EC2 {
94102
});
95103
});
96104
}
105+
97106
/**
98107
* Reboot instance
99108
* @reboot
@@ -110,6 +119,7 @@ class EC2 {
110119
});
111120
});
112121
}
122+
113123
/**
114124
* Terminate instance
115125
* @destory

Diff for: compute/aws-ecs.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const helpers = require('../helpers');
1+
const helpers = require("../helpers");
22

33
const { checkParams } = helpers;
44
class ECS {
@@ -17,6 +17,7 @@ class ECS {
1717
this._ecs = new this._AWS.ECS();
1818
}
1919
}
20+
2021
/**
2122
* Create ECS cluster
2223
* @createCluster
@@ -35,6 +36,7 @@ class ECS {
3536
});
3637
});
3738
}
39+
3840
/**
3941
* Delete ECS cluster
4042
* @deleteCluster
@@ -53,6 +55,7 @@ class ECS {
5355
});
5456
});
5557
}
58+
5659
/**
5760
* Describe ECS clusters
5861
* @deleteCluster
@@ -71,6 +74,7 @@ class ECS {
7174
});
7275
});
7376
}
77+
7478
/**
7579
* Create ECS instance
7680
* @createCluster
@@ -89,6 +93,7 @@ class ECS {
8993
});
9094
});
9195
}
96+
9297
/**
9398
* Delete ECS services
9499
* @deleteService
@@ -107,6 +112,7 @@ class ECS {
107112
});
108113
});
109114
}
115+
110116
/**
111117
* Describe ECS services
112118
* @describeServices
@@ -125,6 +131,7 @@ class ECS {
125131
});
126132
});
127133
}
134+
128135
/**
129136
* Describe ECS container instances
130137
* @describeContainerInstances

Diff for: database/aws-dynamodb.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const helpers = require('../helpers');
1+
const helpers = require("../helpers");
22

33
const { checkParams } = helpers;
44
class DynamoDB {
@@ -17,6 +17,7 @@ class DynamoDB {
1717
this._dynamodb = new this._AWS.DynamoDB();
1818
}
1919
}
20+
2021
/**
2122
* Create item
2223
* @createItem
@@ -36,6 +37,7 @@ class DynamoDB {
3637
});
3738
});
3839
}
40+
3941
/**
4042
* Delete item
4143
* @deleteItem
@@ -55,6 +57,7 @@ class DynamoDB {
5557
});
5658
});
5759
}
60+
5861
/**
5962
* Update item
6063
* @updateItem
@@ -74,6 +77,7 @@ class DynamoDB {
7477
});
7578
});
7679
}
80+
7781
/**
7882
* Query
7983
* @query

Diff for: database/aws-rds.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const helpers = require('../helpers');
1+
const helpers = require("../helpers");
22

33
const { checkParams } = helpers;
44
class RDS {
@@ -17,6 +17,7 @@ class RDS {
1717
this._rds = new this._AWS.RDS();
1818
}
1919
}
20+
2021
/**
2122
* Create DB instance
2223
* @createDBInstance
@@ -35,6 +36,7 @@ class RDS {
3536
});
3637
});
3738
}
39+
3840
/**
3941
* Create DB Security Group
4042
* @createDBSecurityGroup
@@ -53,6 +55,7 @@ class RDS {
5355
});
5456
});
5557
}
58+
5659
/**
5760
* Create DB Snapshot
5861
* @createDBSnapshot
@@ -71,6 +74,7 @@ class RDS {
7174
});
7275
});
7376
}
77+
7478
/**
7579
* Modify DB instance
7680
* @modifyDBInstance
@@ -89,6 +93,7 @@ class RDS {
8993
});
9094
});
9195
}
96+
9297
/**
9398
* Modify DB Snapshot
9499
* @modifyDBSnapshot
@@ -107,6 +112,7 @@ class RDS {
107112
});
108113
});
109114
}
115+
110116
/**
111117
* Reboot DB instance
112118
* @rebootDBInstance
@@ -125,6 +131,7 @@ class RDS {
125131
});
126132
});
127133
}
134+
128135
/**
129136
* Delete DB instance
130137
* @deleteDBInstance
@@ -143,6 +150,7 @@ class RDS {
143150
});
144151
});
145152
}
153+
146154
/**
147155
* Delete DB Security Group
148156
* @deleteDBSecurityGroup
@@ -161,6 +169,7 @@ class RDS {
161169
});
162170
});
163171
}
172+
164173
/**
165174
* Delete DB Snapshot
166175
* @deleteDBSnapshot

Diff for: network/aws-directconnect.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const helpers = require('../helpers');
1+
const helpers = require("../helpers");
22

33
const { checkParams } = helpers;
44
class DirectConnect {
@@ -17,6 +17,7 @@ class DirectConnect {
1717
this._dc = new this._AWS.DirectConnect();
1818
}
1919
}
20+
2021
/**
2122
* Creates a new connection between the customer network
2223
* and a specific AWS Direct Connect location
@@ -36,6 +37,7 @@ class DirectConnect {
3637
});
3738
});
3839
}
40+
3941
/**
4042
* Displays all connections in this region
4143
* @describeConnections
@@ -54,6 +56,7 @@ class DirectConnect {
5456
});
5557
});
5658
}
59+
5760
/**
5861
* Disassociates a connection from a link aggregation group (LAG)
5962
* @deleteConnection
@@ -72,6 +75,7 @@ class DirectConnect {
7275
});
7376
});
7477
}
78+
7579
/**
7680
* Creates a new link aggregation group (LAG)
7781
* @createLag
@@ -90,6 +94,7 @@ class DirectConnect {
9094
});
9195
});
9296
}
97+
9398
/**
9499
* Describes the link aggregation groups (LAGs)
95100
* @describeLags
@@ -108,6 +113,7 @@ class DirectConnect {
108113
});
109114
});
110115
}
116+
111117
/**
112118
* Deletes a link aggregation group (LAG)
113119
* @deleteLag
@@ -126,6 +132,7 @@ class DirectConnect {
126132
});
127133
});
128134
}
135+
129136
/**
130137
* Adds the specified tags to the specified Direct Connect resource
131138
* @tagResource
@@ -144,6 +151,7 @@ class DirectConnect {
144151
});
145152
});
146153
}
154+
147155
/**
148156
* Removes one or more tags from the specified Direct Connect resource
149157
* @untagResource

Diff for: network/aws-elb.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const helpers = require('../helpers');
1+
const helpers = require("../helpers");
22

33
const { checkParams } = helpers;
44
class ELB {
@@ -17,6 +17,7 @@ class ELB {
1717
this._elb = new this._AWS.ELB();
1818
}
1919
}
20+
2021
/**
2122
* Create load balancer
2223
* @create
@@ -35,6 +36,7 @@ class ELB {
3536
});
3637
});
3738
}
39+
3840
/**
3941
* Delete load balancer
4042
* @delete
@@ -53,6 +55,7 @@ class ELB {
5355
});
5456
});
5557
}
58+
5659
/**
5760
* Describe load balancers
5861
* @list
@@ -71,6 +74,7 @@ class ELB {
7174
});
7275
});
7376
}
77+
7478
/**
7579
* Add tags to specified load balancer
7680
* @list
@@ -89,6 +93,7 @@ class ELB {
8993
});
9094
});
9195
}
96+
9297
/**
9398
* Remove tags from specified load balancer
9499
* @list

0 commit comments

Comments
 (0)