train-awsssm 0.2.1 → 0.3.0

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: 84b93f6b8c8e42c234b406aaeede3112f9eb8a5d2bb8f25973ca6bac555ebe91
4
- data.tar.gz: fb7af1a14b231cffdd3de53b52912fc06cd820c683783f4ed2c45415eef157fb
3
+ metadata.gz: ff10e8a2e2484e28b230def8bcc43fbd0c6b393d36cbb606e1b60db470c60d05
4
+ data.tar.gz: c5a948336fe26b2f1a4c5d3479371114921cf7d2d6d9bb11f78e0229befd133b
5
5
  SHA512:
6
- metadata.gz: 39739ed9e732f26a55ac2a748b932e35c74f94aaa3de0a026d25563ef11b376277ed261bfe1a3bb7e2da3fc0260bf3e8f37b619b530a78ee0ba630f5d7149d29
7
- data.tar.gz: fe0b339242ef4ee3ca7f88d43eba25bd148d8a080db8530cf7a4e96c94ea7db1d4bb6c2878c989b848e426b6b1c46878619aff6c429bdeac60523cacaaff99eb
6
+ metadata.gz: aa0b1a061312b3436797dd2ff9afeaa2cec731a19c1ef4743e0bce7a204482a363378a895923f97bace3d640c54397986affb318418636e87b120ac9f10801f4
7
+ data.tar.gz: 15c9c7de1375a4d338bd6d82c58c907f2c6fdaedf1e33f66c0488a7e31daa2855aed22288bd6418552639b6c033fa4c730ba361c2e2f4163d83000add16de4a1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## Version 0.3.0
6
+
7
+ - Add support for `file_via_connection` (PR by @jkufro)
8
+
5
9
  ## Version 0.2.1
6
10
 
7
11
  - Fix EC2 instance enumeration to use paging
@@ -30,6 +30,20 @@ module TrainPlugins
30
30
  CommandResult.new(stdout, stderr, exit_status)
31
31
  end
32
32
 
33
+ def file_via_connection(path, *args)
34
+ if os.aix?
35
+ Train::File::Remote::Aix.new(self, path, *args)
36
+ elsif os.solaris?
37
+ Train::File::Remote::Unix.new(self, path, *args)
38
+ elsif os[:name] == "qnx"
39
+ Train::File::Remote::Qnx.new(self, path, *args)
40
+ elsif os.windows?
41
+ Train::File::Remote::Windows.new(self, path, *args)
42
+ else
43
+ Train::File::Remote::Linux.new(self, path, *args)
44
+ end
45
+ end
46
+
33
47
  def execute_on_channel(cmd, &data_handler)
34
48
  logger.debug format("[AWS-SSM] Command: '%s'", cmd)
35
49
 
@@ -1,5 +1,5 @@
1
1
  module TrainPlugins
2
2
  module AWSSSM
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.3.0".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.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Heinen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2021-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '0.10'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.9'
26
+ version: '0.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chefstyle
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.14'
33
+ version: '2.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.14'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: guard
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.16'
47
+ version: '2.17'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.16'
54
+ version: '2.17'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mdl
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.9'
61
+ version: '0.11'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.9'
68
+ version: '0.11'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -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
116
+ rubygems_version: 3.0.3.1
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Train Transport for AWS Systems Manager Agents