ec2ctl 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ec2ctl/cli.rb +15 -10
- data/lib/ec2ctl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fc23ea4b25df08aa935a0de56d984b470640c37
|
4
|
+
data.tar.gz: 76b35c06b9f2103f26ae4d6cc2a6d5dbf4618203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6088bfa23ec8b9ff9de5056b25b10beeccade7d19a196e2a2079089d862680a1bef4f7b19954bfa5c18b60fc2a7ac26bf86db57520868336d2156504ef4173d8
|
7
|
+
data.tar.gz: 6f4a3019cdfd8632f346d98773e622940e9b0a1baae2f34f799446f38ed8b898165dc1528539b6e32016594284db54e32ab1c5fdf30b789279bb0e0cd24ab9b3
|
data/lib/ec2ctl/cli.rb
CHANGED
@@ -26,8 +26,9 @@ module EC2Ctl
|
|
26
26
|
|
27
27
|
ec2_options c
|
28
28
|
|
29
|
-
c.option "-a", "--attributes KEY1,KEY2...",
|
30
|
-
c.option "-C", "--count",
|
29
|
+
c.option "-a", "--attributes KEY1,KEY2...", Array, "(Optional) The instance attribute keys to display."
|
30
|
+
c.option "-C", "--count", "(Optional) Display instance attribute stats."
|
31
|
+
c.option "--platform-type Linux|Windows", String, "(Optional) Platform type: `Linux` or `Windows`. Default is `Linux`."
|
31
32
|
|
32
33
|
c.action do |args, options|
|
33
34
|
options.default attributes: %w(instance_id tag:Name instance_type public_dns_name state.name ssm:ping_status)
|
@@ -43,8 +44,7 @@ module EC2Ctl
|
|
43
44
|
c.description = "Execute commands in the EC2 instances."
|
44
45
|
|
45
46
|
ec2_options c
|
46
|
-
|
47
|
-
c.option "-c", "--commands 'STRING1','STRING2',...", Array, "The commands to execute."
|
47
|
+
ssm_options c
|
48
48
|
|
49
49
|
c.action do |args, options|
|
50
50
|
invoke options do
|
@@ -209,8 +209,18 @@ module EC2Ctl
|
|
209
209
|
|
210
210
|
def elb_execute_options(_command)
|
211
211
|
_command.option "-b", "--load-balancer-name STRING", String, "The name of the load balancer."
|
212
|
+
_command.option "--rolling-group-size INTEGER", Integer, "(Optional) The count of instances to register/deregister/execute simultaneously."
|
213
|
+
_command.option "--skip-draining-waits", "(Optional) Skip waiting connection draining after deregistering instances from load balancer."
|
214
|
+
_command.option "--skip-inservice-waits", "(Optional) Skip waiting `InService` state after registering instances to load balancer."
|
215
|
+
_command.option "--inservice-wait-timeout INTEGER", Integer, "(Optional) The time in seconds for instances to be `InService` state after registering to load balancer."
|
216
|
+
_command.option "-i", "--instance-ids STRING1,STRING2", Array, "(Optional) The IDs of the instances. If specified, the commands will be executed only on these instances."
|
217
|
+
|
218
|
+
ssm_options(_command)
|
219
|
+
end
|
220
|
+
|
221
|
+
def ssm_options(_command)
|
212
222
|
_command.option "-c", "--commands 'STRING1','STRING2',...", Array, "The commands to execute."
|
213
|
-
_command.option
|
223
|
+
_command.option "--platform-type Linux|Windows", String, "(Optional) Platform type: `Linux` or `Windows`. Default is `Linux`."
|
214
224
|
_command.option "--skip-ping-check", "(Optional) Skip SSM ping check."
|
215
225
|
_command.option "--skip-command-waits", "(Optional) Skip waiting command success."
|
216
226
|
_command.option "--wait-interval INTEGER", Integer, "(Optional) Waiting interval."
|
@@ -224,11 +234,6 @@ module EC2Ctl
|
|
224
234
|
_command.option "--notification-arn STRING", String, "(Optional) An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic."
|
225
235
|
_command.option "--notification-events STRING1,STRING2,...", Array, "(Optional) The different events for which you can receive notifications."
|
226
236
|
_command.option "--notification-type STRING", String, "(Optional) Command: Receive notification when the status of a command changes."
|
227
|
-
_command.option "--rolling-group-size INTEGER", Integer, "(Optional) The count of instances to register/deregister/execute simultaneously."
|
228
|
-
_command.option "--skip-draining-waits", "(Optional) Skip waiting connection draining after deregistering instances from load balancer."
|
229
|
-
_command.option "--skip-inservice-waits", "(Optional) Skip waiting `InService` state after registering instances to load balancer."
|
230
|
-
_command.option "--inservice-wait-timeout INTEGER", Integer, "(Optional) The time in seconds for instances to be `InService` state after registering to load balancer."
|
231
|
-
_command.option "-i", "--instance-ids STRING1,STRING2", Array, "(Optional) The IDs of the instances. If specified, the commands will be executed only on these instances."
|
232
237
|
end
|
233
238
|
|
234
239
|
def ec2_options(_command)
|
data/lib/ec2ctl/version.rb
CHANGED