sonic-screwdriver 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/sonic/cli.rb +3 -1
- data/lib/sonic/execute.rb +5 -1
- data/lib/sonic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29aac04bb7f8d0a6b49d6a30813edbcb2aeaab5616fc33e641f80343a0e6e821
|
4
|
+
data.tar.gz: 00d10d65f3e2ba80fb946ea67ef4c8ece025bfcd1f4283979e25634c0b0a0599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5623fd72b4faa65edcb42e63b7210a5254752e6c909a2c3343cd23e68adfb954d623ddc4d4bd9915e5d578a492ec8d2772e7f96a69b351d1d2e61ab69adc9c5a
|
7
|
+
data.tar.gz: ff9854b28d81f8f094fbe1d087624797fd00c9d6cba4fe59acbaf86fa70f7483f41d0c7edb48e704c80c8aff97e03ceb619a6e371b226f507970f59e3225745c
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely* adheres to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [2.2.6] - 2021-04-30
|
7
|
+
- [#15](https://github.com/boltops-tools/sonic/pull/15) execution-timeout and delivery-timeout options and timeout sets both …
|
8
|
+
|
6
9
|
## [2.2.5] - 2021-04-24
|
7
10
|
- [#14](https://github.com/boltops-tools/sonic/pull/14) execute --timeout option: executionTimeout
|
8
11
|
|
data/lib/sonic/cli.rb
CHANGED
@@ -30,7 +30,9 @@ module Sonic
|
|
30
30
|
option :instance_ids, desc: %Q|Instance ids to execute command on. Format: --instance-ids "i-111,i-222"|
|
31
31
|
option :tags, desc: %Q|Tags used to determine what instances to execute command on. Format: --tags "Key1=v1,v2;Key2=v3"|
|
32
32
|
option :comment, desc: "comment. defaults to the sonic command used"
|
33
|
-
option :timeout, aliases: %w[t], desc: "timeout in seconds.
|
33
|
+
option :timeout, aliases: %w[t], desc: "timeout in seconds. defaults to nil which uses AWS-RunShellScript default of 3600"
|
34
|
+
option :execution_timeout, desc: "execution timeout in seconds. defaults to general timeout option"
|
35
|
+
option :delivery_timeout, desc: "delivery timeout in seconds. defaults to general timeout option"
|
34
36
|
def execute(*command)
|
35
37
|
Execute.new(command, options).execute
|
36
38
|
end
|
data/lib/sonic/execute.rb
CHANGED
@@ -201,7 +201,7 @@ module Sonic
|
|
201
201
|
comment = comment[0..99] # comment has a max of 100 chars
|
202
202
|
|
203
203
|
parameters = { "commands" => command }
|
204
|
-
t = @options[:timeout]
|
204
|
+
t = @options[:execution_timeout] || @options[:timeout]
|
205
205
|
parameters[:executionTimeout] = [t] if t # weird but executionTimeout expects an Array
|
206
206
|
|
207
207
|
options = criteria.merge(
|
@@ -215,6 +215,10 @@ module Sonic
|
|
215
215
|
cloud_watch_output_enabled: true,
|
216
216
|
},
|
217
217
|
)
|
218
|
+
|
219
|
+
t = @options[:execution_timeout] || @options[:timeout]
|
220
|
+
options[:timeout_seconds] = t if t
|
221
|
+
|
218
222
|
settings_options = settings["send_command"] || {}
|
219
223
|
options.merge(settings_options.deep_symbolize_keys)
|
220
224
|
end
|
data/lib/sonic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sonic-screwdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|