train-awsssm 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff10e8a2e2484e28b230def8bcc43fbd0c6b393d36cbb606e1b60db470c60d05
4
- data.tar.gz: c5a948336fe26b2f1a4c5d3479371114921cf7d2d6d9bb11f78e0229befd133b
3
+ metadata.gz: 041cd55cc0d4c017c485f01e7a1e66bc1b1613878c3fa5ae5f63eb32a5ebde68
4
+ data.tar.gz: 95a505fbe146d80c867212658a7b50ca1de8662cadd2ab4428df63ed6c789d4b
5
5
  SHA512:
6
- metadata.gz: aa0b1a061312b3436797dd2ff9afeaa2cec731a19c1ef4743e0bce7a204482a363378a895923f97bace3d640c54397986affb318418636e87b120ac9f10801f4
7
- data.tar.gz: 15c9c7de1375a4d338bd6d82c58c907f2c6fdaedf1e33f66c0488a7e31daa2855aed22288bd6418552639b6c033fa4c730ba361c2e2f4163d83000add16de4a1
6
+ metadata.gz: 235b021f311880bf479236543271ac364b5a53d8356b53b5300b9e4356790e3ea904e8d2740babc16621218b2e56ccdc2caa6c6ecd38da35a63c0e1124338e6f
7
+ data.tar.gz: f4a06389079443c938778cd5cdfc8af643962102533ec63916a8e2c567c9435a09bb51a5e128cf82694992daaea9124a024ae3ce1039b72992917dbacc5d55e2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## Version 0.3.1
6
+
7
+ - Fix type problems when accepting URL-encoded parameters from Train
8
+
5
9
  ## Version 0.3.0
6
10
 
7
11
  - Add support for `file_via_connection` (PR by @jkufro)
@@ -89,6 +89,11 @@ module TrainPlugins
89
89
 
90
90
  raise ArgumentError, format("Instance %s is not running", instance_id) unless instance_running?
91
91
  raise ArgumentError, format("Instance %s is not managed by SSM or agent unreachable", instance_id) unless managed_instance?
92
+
93
+ options[:execution_timeout] = Integer(options[:execution_timeout])
94
+ options[:recheck_invocation] = Float(options[:recheck_invocation])
95
+ options[:recheck_execution] = Float(options[:recheck_execution])
96
+ options[:instance_pagesize] = Integer(options[:instance_pagesize])
92
97
  end
93
98
 
94
99
  # Resolve EC2 instance ID associated with a primary IP or a DNS entry
@@ -218,6 +223,7 @@ module TrainPlugins
218
223
  def execute_command(address, command)
219
224
  ssm_document = windows_instance? ? "AWS-RunPowerShellScript" : "AWS-RunShellScript"
220
225
 
226
+ logger.debug format("[AWS-SSM] Executing with timeout of %s seconds", options[:execution_timeout])
221
227
  cmd = ssm.send_command(instance_ids: [instance_id], document_name: ssm_document, parameters: { "commands": [command] })
222
228
  cmd_id = cmd.command.command_id
223
229
 
@@ -1,5 +1,5 @@
1
1
  module TrainPlugins
2
2
  module AWSSSM
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.3.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-awsssm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Heinen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2023-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
- rubygems_version: 3.0.3.1
116
+ rubygems_version: 3.4.1
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Train Transport for AWS Systems Manager Agents