train 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rubocop.yml +71 -0
- data/CHANGELOG.md +308 -0
- data/Gemfile +30 -0
- data/LICENSE +201 -0
- data/README.md +156 -0
- data/Rakefile +148 -0
- data/lib/train.rb +117 -0
- data/lib/train/errors.rb +23 -0
- data/lib/train/extras.rb +17 -0
- data/lib/train/extras/command_wrapper.rb +148 -0
- data/lib/train/extras/file_aix.rb +20 -0
- data/lib/train/extras/file_common.rb +161 -0
- data/lib/train/extras/file_linux.rb +16 -0
- data/lib/train/extras/file_unix.rb +79 -0
- data/lib/train/extras/file_windows.rb +91 -0
- data/lib/train/extras/linux_lsb.rb +60 -0
- data/lib/train/extras/os_common.rb +136 -0
- data/lib/train/extras/os_detect_darwin.rb +32 -0
- data/lib/train/extras/os_detect_linux.rb +148 -0
- data/lib/train/extras/os_detect_unix.rb +99 -0
- data/lib/train/extras/os_detect_windows.rb +57 -0
- data/lib/train/extras/stat.rb +133 -0
- data/lib/train/options.rb +80 -0
- data/lib/train/plugins.rb +40 -0
- data/lib/train/plugins/base_connection.rb +86 -0
- data/lib/train/plugins/transport.rb +49 -0
- data/lib/train/transports/docker.rb +103 -0
- data/lib/train/transports/local.rb +52 -0
- data/lib/train/transports/local_file.rb +90 -0
- data/lib/train/transports/local_os.rb +51 -0
- data/lib/train/transports/mock.rb +147 -0
- data/lib/train/transports/ssh.rb +163 -0
- data/lib/train/transports/ssh_connection.rb +225 -0
- data/lib/train/transports/winrm.rb +184 -0
- data/lib/train/transports/winrm_connection.rb +194 -0
- data/lib/train/version.rb +7 -0
- data/test/integration/.kitchen.yml +43 -0
- data/test/integration/Berksfile +3 -0
- data/test/integration/bootstrap.sh +17 -0
- data/test/integration/chefignore +1 -0
- data/test/integration/cookbooks/test/metadata.rb +1 -0
- data/test/integration/cookbooks/test/recipes/default.rb +100 -0
- data/test/integration/cookbooks/test/recipes/prep_files.rb +47 -0
- data/test/integration/docker_run.rb +153 -0
- data/test/integration/docker_test.rb +24 -0
- data/test/integration/docker_test_container.rb +24 -0
- data/test/integration/helper.rb +61 -0
- data/test/integration/sudo/customcommand.rb +15 -0
- data/test/integration/sudo/nopasswd.rb +16 -0
- data/test/integration/sudo/passwd.rb +21 -0
- data/test/integration/sudo/reqtty.rb +17 -0
- data/test/integration/sudo/run_as.rb +12 -0
- data/test/integration/test-travis-1.yaml +13 -0
- data/test/integration/test-travis-2.yaml +13 -0
- data/test/integration/test_local.rb +19 -0
- data/test/integration/test_ssh.rb +39 -0
- data/test/integration/tests/path_block_device_test.rb +74 -0
- data/test/integration/tests/path_character_device_test.rb +74 -0
- data/test/integration/tests/path_file_test.rb +79 -0
- data/test/integration/tests/path_folder_test.rb +90 -0
- data/test/integration/tests/path_missing_test.rb +77 -0
- data/test/integration/tests/path_pipe_test.rb +78 -0
- data/test/integration/tests/path_symlink_test.rb +95 -0
- data/test/integration/tests/run_command_test.rb +28 -0
- data/test/unit/extras/command_wrapper_test.rb +78 -0
- data/test/unit/extras/file_common_test.rb +180 -0
- data/test/unit/extras/linux_file_test.rb +167 -0
- data/test/unit/extras/os_common_test.rb +269 -0
- data/test/unit/extras/os_detect_linux_test.rb +189 -0
- data/test/unit/extras/os_detect_windows_test.rb +99 -0
- data/test/unit/extras/stat_test.rb +148 -0
- data/test/unit/extras/windows_file_test.rb +44 -0
- data/test/unit/helper.rb +7 -0
- data/test/unit/plugins/connection_test.rb +44 -0
- data/test/unit/plugins/transport_test.rb +111 -0
- data/test/unit/plugins_test.rb +22 -0
- data/test/unit/train_test.rb +156 -0
- data/test/unit/transports/local_file_test.rb +184 -0
- data/test/unit/transports/local_test.rb +87 -0
- data/test/unit/transports/mock_test.rb +87 -0
- data/test/unit/transports/ssh_test.rb +109 -0
- data/test/unit/version_test.rb +8 -0
- data/test/windows/local_test.rb +46 -0
- data/test/windows/winrm_test.rb +52 -0
- data/train.gemspec +38 -0
- metadata +295 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 27272a96b77df4648d1e5519b86108666b5c05d2
|
4
|
+
data.tar.gz: 74c670d0e4b34eb6c56468055c565e0894b756ad
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0b5c0ee5b61cbb5e7095a41d16e58f746873c09f03a771d9507e16258806c03c9ae61ba0fe3894e1a82cd9145a3056c7db07c4af813a089a72e3ea33a5e6b272
|
7
|
+
data.tar.gz: 93a304ceede19c18bb8cb8c7becfd06a02f9b6b1ea79f07200c2b24fa4dafcdee58e71de4be69c4ec7415b33e781f3b5886f376b85dfd8f128e090a845dd5b74
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
AllCops:
|
3
|
+
Exclude:
|
4
|
+
- Gemfile
|
5
|
+
- Rakefile
|
6
|
+
- 'test/**/*'
|
7
|
+
- 'examples/**/*'
|
8
|
+
- 'vendor/**/*'
|
9
|
+
Documentation:
|
10
|
+
Enabled: false
|
11
|
+
AlignParameters:
|
12
|
+
Enabled: true
|
13
|
+
Encoding:
|
14
|
+
Enabled: true
|
15
|
+
HashSyntax:
|
16
|
+
Enabled: true
|
17
|
+
LineLength:
|
18
|
+
Enabled: false
|
19
|
+
EmptyLinesAroundBlockBody:
|
20
|
+
Enabled: false
|
21
|
+
MethodLength:
|
22
|
+
Max: 40
|
23
|
+
NumericLiterals:
|
24
|
+
MinDigits: 10
|
25
|
+
Metrics/CyclomaticComplexity:
|
26
|
+
Max: 10
|
27
|
+
Metrics/PerceivedComplexity:
|
28
|
+
Max: 10
|
29
|
+
Metrics/AbcSize:
|
30
|
+
Max: 33
|
31
|
+
Style/PercentLiteralDelimiters:
|
32
|
+
PreferredDelimiters:
|
33
|
+
'%': '{}'
|
34
|
+
'%i': ()
|
35
|
+
'%q': '{}'
|
36
|
+
'%Q': ()
|
37
|
+
'%r': '{}'
|
38
|
+
'%s': ()
|
39
|
+
'%w': '{}'
|
40
|
+
'%W': ()
|
41
|
+
'%x': ()
|
42
|
+
Style/AlignHash:
|
43
|
+
Enabled: false
|
44
|
+
Style/PredicateName:
|
45
|
+
Enabled: false
|
46
|
+
Style/ClassAndModuleChildren:
|
47
|
+
Enabled: false
|
48
|
+
Style/ConditionalAssignment:
|
49
|
+
Enabled: false
|
50
|
+
Style/BracesAroundHashParameters:
|
51
|
+
Enabled: false
|
52
|
+
Style/AndOr:
|
53
|
+
Enabled: false
|
54
|
+
Style/Not:
|
55
|
+
Enabled: false
|
56
|
+
Style/FileName:
|
57
|
+
Enabled: false
|
58
|
+
Style/TrailingCommaInLiteral:
|
59
|
+
EnforcedStyleForMultiline: comma
|
60
|
+
Style/TrailingCommaInArguments:
|
61
|
+
EnforcedStyleForMultiline: comma
|
62
|
+
Style/NegatedIf:
|
63
|
+
Enabled: false
|
64
|
+
Style/UnlessElse:
|
65
|
+
Enabled: false
|
66
|
+
BlockDelimiters:
|
67
|
+
Enabled: false
|
68
|
+
Style/SpaceAroundOperators:
|
69
|
+
Enabled: false
|
70
|
+
Style/IfUnlessModifier:
|
71
|
+
Enabled: false
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,308 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [0.12.1](https://github.com/chef/train/tree/0.12.1) (2016-05-23)
|
4
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.12.0...0.12.1)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- loosen restriction for docker api [\#109](https://github.com/chef/train/pull/109) ([chris-rock](https://github.com/chris-rock))
|
9
|
+
|
10
|
+
**Closed issues:**
|
11
|
+
|
12
|
+
- docker-api conflict when using docker cookbook [\#108](https://github.com/chef/train/issues/108)
|
13
|
+
|
14
|
+
## [v0.12.0](https://github.com/chef/train/tree/v0.12.0) (2016-05-16)
|
15
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.11.4...v0.12.0)
|
16
|
+
|
17
|
+
**Merged pull requests:**
|
18
|
+
|
19
|
+
- Custom sudo command [\#107](https://github.com/chef/train/pull/107) ([jeremymv2](https://github.com/jeremymv2))
|
20
|
+
|
21
|
+
## [v0.11.4](https://github.com/chef/train/tree/v0.11.4) (2016-05-13)
|
22
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.11.3...v0.11.4)
|
23
|
+
|
24
|
+
**Fixed bugs:**
|
25
|
+
|
26
|
+
- mount resource incorrect matching [\#103](https://github.com/chef/train/issues/103)
|
27
|
+
- Add a space to avoid matching partial paths [\#104](https://github.com/chef/train/pull/104) ([alexpop](https://github.com/alexpop))
|
28
|
+
- Update README.md [\#102](https://github.com/chef/train/pull/102) ([mcquin](https://github.com/mcquin))
|
29
|
+
|
30
|
+
**Merged pull requests:**
|
31
|
+
|
32
|
+
- 0.11.4 [\#106](https://github.com/chef/train/pull/106) ([arlimus](https://github.com/arlimus))
|
33
|
+
|
34
|
+
## [v0.11.3](https://github.com/chef/train/tree/v0.11.3) (2016-05-10)
|
35
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.11.2...v0.11.3)
|
36
|
+
|
37
|
+
**Fixed bugs:**
|
38
|
+
|
39
|
+
- appveyor fixing... [\#98](https://github.com/chef/train/pull/98) ([arlimus](https://github.com/arlimus))
|
40
|
+
|
41
|
+
**Merged pull requests:**
|
42
|
+
|
43
|
+
- fix: winrm https listener is not configured anymore in appveyor [\#100](https://github.com/chef/train/pull/100) ([chris-rock](https://github.com/chris-rock))
|
44
|
+
- use aix stats implementation for hpux as well [\#99](https://github.com/chef/train/pull/99) ([Anirudh-Gupta](https://github.com/Anirudh-Gupta))
|
45
|
+
|
46
|
+
## [v0.11.2](https://github.com/chef/train/tree/v0.11.2) (2016-04-29)
|
47
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.11.1...v0.11.2)
|
48
|
+
|
49
|
+
**Fixed bugs:**
|
50
|
+
|
51
|
+
- bugfix: windows file failed to initialize with new symlink handler [\#96](https://github.com/chef/train/pull/96) ([arlimus](https://github.com/arlimus))
|
52
|
+
|
53
|
+
**Merged pull requests:**
|
54
|
+
|
55
|
+
- 0.11.2 [\#97](https://github.com/chef/train/pull/97) ([alexpop](https://github.com/alexpop))
|
56
|
+
|
57
|
+
## [v0.11.1](https://github.com/chef/train/tree/v0.11.1) (2016-04-28)
|
58
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.11.0...v0.11.1)
|
59
|
+
|
60
|
+
**Fixed bugs:**
|
61
|
+
|
62
|
+
- fix nil file paths [\#94](https://github.com/chef/train/pull/94) ([arlimus](https://github.com/arlimus))
|
63
|
+
|
64
|
+
**Merged pull requests:**
|
65
|
+
|
66
|
+
- provide a source path for filecommon [\#95](https://github.com/chef/train/pull/95) ([arlimus](https://github.com/arlimus))
|
67
|
+
- restructure docker tests to balance load between 2 runs [\#93](https://github.com/chef/train/pull/93) ([arlimus](https://github.com/arlimus))
|
68
|
+
|
69
|
+
## [v0.11.0](https://github.com/chef/train/tree/v0.11.0) (2016-04-28)
|
70
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.8...v0.11.0)
|
71
|
+
|
72
|
+
**Implemented enhancements:**
|
73
|
+
|
74
|
+
- Overhault file\(...\) and stat\(...\); point to destination of symlinks [\#92](https://github.com/chef/train/pull/92) ([arlimus](https://github.com/arlimus))
|
75
|
+
|
76
|
+
**Fixed bugs:**
|
77
|
+
|
78
|
+
- validate the backend configuration [\#91](https://github.com/chef/train/pull/91) ([arlimus](https://github.com/arlimus))
|
79
|
+
|
80
|
+
## [v0.10.8](https://github.com/chef/train/tree/v0.10.8) (2016-04-25)
|
81
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.7...v0.10.8)
|
82
|
+
|
83
|
+
**Implemented enhancements:**
|
84
|
+
|
85
|
+
- loose restriction for mixlib-shellout [\#89](https://github.com/chef/train/pull/89) ([chris-rock](https://github.com/chris-rock))
|
86
|
+
|
87
|
+
**Merged pull requests:**
|
88
|
+
|
89
|
+
- use gemspec for travis [\#90](https://github.com/chef/train/pull/90) ([chris-rock](https://github.com/chris-rock))
|
90
|
+
- Don't strip off the second byte of the octal mode. [\#88](https://github.com/chef/train/pull/88) ([justindossey](https://github.com/justindossey))
|
91
|
+
|
92
|
+
## [v0.10.7](https://github.com/chef/train/tree/v0.10.7) (2016-04-21)
|
93
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.6...v0.10.7)
|
94
|
+
|
95
|
+
**Merged pull requests:**
|
96
|
+
|
97
|
+
- 0.10.7 [\#87](https://github.com/chef/train/pull/87) ([arlimus](https://github.com/arlimus))
|
98
|
+
- Revert "add -L to get stat for symlink" [\#86](https://github.com/chef/train/pull/86) ([arlimus](https://github.com/arlimus))
|
99
|
+
|
100
|
+
## [v0.10.6](https://github.com/chef/train/tree/v0.10.6) (2016-04-20)
|
101
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.5...v0.10.6)
|
102
|
+
|
103
|
+
**Merged pull requests:**
|
104
|
+
|
105
|
+
- add -L to get stat for symlink [\#85](https://github.com/chef/train/pull/85) ([vjeffrey](https://github.com/vjeffrey))
|
106
|
+
- release via travis + test via rubygems [\#84](https://github.com/chef/train/pull/84) ([arlimus](https://github.com/arlimus))
|
107
|
+
|
108
|
+
## [v0.10.5](https://github.com/chef/train/tree/v0.10.5) (2016-04-18)
|
109
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.4...v0.10.5)
|
110
|
+
|
111
|
+
**Merged pull requests:**
|
112
|
+
|
113
|
+
- 0.10.5 [\#83](https://github.com/chef/train/pull/83) ([srenatus](https://github.com/srenatus))
|
114
|
+
- detection for hp-ux machine [\#82](https://github.com/chef/train/pull/82) ([Anirudh-Gupta](https://github.com/Anirudh-Gupta))
|
115
|
+
|
116
|
+
## [v0.10.4](https://github.com/chef/train/tree/v0.10.4) (2016-03-31)
|
117
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.3...v0.10.4)
|
118
|
+
|
119
|
+
**Fixed bugs:**
|
120
|
+
|
121
|
+
- bugfix: do not use unix path escape for windows [\#79](https://github.com/chef/train/pull/79) ([chris-rock](https://github.com/chris-rock))
|
122
|
+
|
123
|
+
**Merged pull requests:**
|
124
|
+
|
125
|
+
- 0.10.4 [\#80](https://github.com/chef/train/pull/80) ([arlimus](https://github.com/arlimus))
|
126
|
+
|
127
|
+
## [v0.10.3](https://github.com/chef/train/tree/v0.10.3) (2016-03-07)
|
128
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.1...v0.10.3)
|
129
|
+
|
130
|
+
**Fixed bugs:**
|
131
|
+
|
132
|
+
- set default value for ssh compression to false [\#77](https://github.com/chef/train/pull/77) ([chris-rock](https://github.com/chris-rock))
|
133
|
+
- avoid mock backend error on nil commands [\#75](https://github.com/chef/train/pull/75) ([arlimus](https://github.com/arlimus))
|
134
|
+
|
135
|
+
**Merged pull requests:**
|
136
|
+
|
137
|
+
- 0.10.3 [\#78](https://github.com/chef/train/pull/78) ([chris-rock](https://github.com/chris-rock))
|
138
|
+
- 0.10.2 [\#76](https://github.com/chef/train/pull/76) ([arlimus](https://github.com/arlimus))
|
139
|
+
|
140
|
+
## [v0.10.1](https://github.com/chef/train/tree/v0.10.1) (2016-02-29)
|
141
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.0...v0.10.1)
|
142
|
+
|
143
|
+
**Merged pull requests:**
|
144
|
+
|
145
|
+
- 0.10.1 [\#74](https://github.com/chef/train/pull/74) ([chris-rock](https://github.com/chris-rock))
|
146
|
+
- fix gem build license warning [\#73](https://github.com/chef/train/pull/73) ([chris-rock](https://github.com/chris-rock))
|
147
|
+
- depend on docker-api 1.26.2 [\#72](https://github.com/chef/train/pull/72) ([someara](https://github.com/someara))
|
148
|
+
|
149
|
+
## [v0.10.0](https://github.com/chef/train/tree/v0.10.0) (2016-02-19)
|
150
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.9.7...v0.10.0)
|
151
|
+
|
152
|
+
**Implemented enhancements:**
|
153
|
+
|
154
|
+
- show mock failures for commands [\#69](https://github.com/chef/train/pull/69) ([arlimus](https://github.com/arlimus))
|
155
|
+
- update gems and rubocop [\#68](https://github.com/chef/train/pull/68) ([arlimus](https://github.com/arlimus))
|
156
|
+
|
157
|
+
**Fixed bugs:**
|
158
|
+
|
159
|
+
- complete rewrite of windows version detection [\#70](https://github.com/chef/train/pull/70) ([chris-rock](https://github.com/chris-rock))
|
160
|
+
|
161
|
+
**Merged pull requests:**
|
162
|
+
|
163
|
+
- 0.10.0 [\#71](https://github.com/chef/train/pull/71) ([chris-rock](https://github.com/chris-rock))
|
164
|
+
|
165
|
+
## [v0.9.7](https://github.com/chef/train/tree/v0.9.7) (2016-02-05)
|
166
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.9.6...v0.9.7)
|
167
|
+
|
168
|
+
**Implemented enhancements:**
|
169
|
+
|
170
|
+
- feature: add file.basename [\#64](https://github.com/chef/train/pull/64) ([arlimus](https://github.com/arlimus))
|
171
|
+
- add `requiretty` workaround measures [\#63](https://github.com/chef/train/pull/63) ([srenatus](https://github.com/srenatus))
|
172
|
+
|
173
|
+
**Fixed bugs:**
|
174
|
+
|
175
|
+
- ensure bundler is installed on travis [\#66](https://github.com/chef/train/pull/66) ([chris-rock](https://github.com/chris-rock))
|
176
|
+
|
177
|
+
**Merged pull requests:**
|
178
|
+
|
179
|
+
- 0.9.7 [\#67](https://github.com/chef/train/pull/67) ([chris-rock](https://github.com/chris-rock))
|
180
|
+
|
181
|
+
## [v0.9.6](https://github.com/chef/train/tree/v0.9.6) (2016-01-29)
|
182
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.9.5...v0.9.6)
|
183
|
+
|
184
|
+
**Implemented enhancements:**
|
185
|
+
|
186
|
+
- add solaris support [\#61](https://github.com/chef/train/pull/61) ([chris-rock](https://github.com/chris-rock))
|
187
|
+
|
188
|
+
**Merged pull requests:**
|
189
|
+
|
190
|
+
- 0.9.6 [\#62](https://github.com/chef/train/pull/62) ([chris-rock](https://github.com/chris-rock))
|
191
|
+
|
192
|
+
## [v0.9.5](https://github.com/chef/train/tree/v0.9.5) (2016-01-25)
|
193
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.9.4...v0.9.5)
|
194
|
+
|
195
|
+
**Implemented enhancements:**
|
196
|
+
|
197
|
+
- use minitest for windows tests [\#56](https://github.com/chef/train/pull/56) ([chris-rock](https://github.com/chris-rock))
|
198
|
+
- use negotiate auth for winrm and not basic\_auth [\#55](https://github.com/chef/train/pull/55) ([mwrock](https://github.com/mwrock))
|
199
|
+
- bugfix: pin net-ssh 2.9 in gem file [\#54](https://github.com/chef/train/pull/54) ([chris-rock](https://github.com/chris-rock))
|
200
|
+
- Add appveyor and Windows test [\#53](https://github.com/chef/train/pull/53) ([chris-rock](https://github.com/chris-rock))
|
201
|
+
- Deprecating winrm-tansport gem [\#46](https://github.com/chef/train/pull/46) ([mwrock](https://github.com/mwrock))
|
202
|
+
|
203
|
+
**Fixed bugs:**
|
204
|
+
|
205
|
+
- Cannot install train on Windows with ChefDK if username \>9 chars in length due to spec filename lengths in docker-api gem. [\#28](https://github.com/chef/train/issues/28)
|
206
|
+
- Properly wrap commands in powershell for local backend [\#57](https://github.com/chef/train/pull/57) ([chris-rock](https://github.com/chris-rock))
|
207
|
+
- Copying https://github.com/test-kitchen/test-kitchen/pull/919 to this repo [\#52](https://github.com/chef/train/pull/52) ([tyler-ball](https://github.com/tyler-ball))
|
208
|
+
|
209
|
+
**Merged pull requests:**
|
210
|
+
|
211
|
+
- 0.9.5 [\#58](https://github.com/chef/train/pull/58) ([chris-rock](https://github.com/chris-rock))
|
212
|
+
|
213
|
+
## [v0.9.4](https://github.com/chef/train/tree/v0.9.4) (2016-01-15)
|
214
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.9.3...v0.9.4)
|
215
|
+
|
216
|
+
**Implemented enhancements:**
|
217
|
+
|
218
|
+
- 0.9.3 is empty on Windows [\#48](https://github.com/chef/train/pull/48) ([tyler-ball](https://github.com/tyler-ball))
|
219
|
+
- Updating to the latest release of net-ssh to consume https://github.com/net-ssh/net-ssh/pull/280 [\#47](https://github.com/chef/train/pull/47) ([tyler-ball](https://github.com/tyler-ball))
|
220
|
+
|
221
|
+
**Fixed bugs:**
|
222
|
+
|
223
|
+
- bugfix: command wrapper always return nil [\#50](https://github.com/chef/train/pull/50) ([chris-rock](https://github.com/chris-rock))
|
224
|
+
|
225
|
+
**Merged pull requests:**
|
226
|
+
|
227
|
+
- 0.9.4 [\#51](https://github.com/chef/train/pull/51) ([chris-rock](https://github.com/chris-rock))
|
228
|
+
|
229
|
+
## [v0.9.3](https://github.com/chef/train/tree/v0.9.3) (2016-01-03)
|
230
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.9.2...v0.9.3)
|
231
|
+
|
232
|
+
**Implemented enhancements:**
|
233
|
+
|
234
|
+
- introduce `mounted` as a separate method to retrieve the content [\#44](https://github.com/chef/train/pull/44) ([chris-rock](https://github.com/chris-rock))
|
235
|
+
- Support for local transport on Windows [\#43](https://github.com/chef/train/pull/43) ([chris-rock](https://github.com/chris-rock))
|
236
|
+
- Split integration test preparation from executing [\#42](https://github.com/chef/train/pull/42) ([chris-rock](https://github.com/chris-rock))
|
237
|
+
- Support for AIX and targeted SSH testing [\#41](https://github.com/chef/train/pull/41) ([foobarbam](https://github.com/foobarbam))
|
238
|
+
|
239
|
+
**Merged pull requests:**
|
240
|
+
|
241
|
+
- 0.9.3 [\#45](https://github.com/chef/train/pull/45) ([chris-rock](https://github.com/chris-rock))
|
242
|
+
|
243
|
+
## [v0.9.2](https://github.com/chef/train/tree/v0.9.2) (2015-12-11)
|
244
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.9.1...v0.9.2)
|
245
|
+
|
246
|
+
**Implemented enhancements:**
|
247
|
+
|
248
|
+
- add changelog [\#38](https://github.com/chef/train/pull/38) ([chris-rock](https://github.com/chris-rock))
|
249
|
+
- activate integration tests in travis [\#37](https://github.com/chef/train/pull/37) ([chris-rock](https://github.com/chris-rock))
|
250
|
+
- Adding support for Wind River Linux in support of Cisco devices [\#33](https://github.com/chef/train/pull/33) ([adamleff](https://github.com/adamleff))
|
251
|
+
|
252
|
+
**Fixed bugs:**
|
253
|
+
|
254
|
+
- Integration test failures [\#34](https://github.com/chef/train/issues/34)
|
255
|
+
- Implemented WindowsFile\#exist? [\#36](https://github.com/chef/train/pull/36) ([docwhat](https://github.com/docwhat))
|
256
|
+
- adapt integration test to changes in command\_wrapper [\#35](https://github.com/chef/train/pull/35) ([srenatus](https://github.com/srenatus))
|
257
|
+
|
258
|
+
**Closed issues:**
|
259
|
+
|
260
|
+
- WinRM plaintext transport is hardcoded \(cannot use SSL\) [\#29](https://github.com/chef/train/issues/29)
|
261
|
+
|
262
|
+
**Merged pull requests:**
|
263
|
+
|
264
|
+
- 0.9.2 [\#40](https://github.com/chef/train/pull/40) ([arlimus](https://github.com/arlimus))
|
265
|
+
- add rake version helpers [\#39](https://github.com/chef/train/pull/39) ([arlimus](https://github.com/arlimus))
|
266
|
+
|
267
|
+
## [v0.9.1](https://github.com/chef/train/tree/v0.9.1) (2015-11-03)
|
268
|
+
[Full Changelog](https://github.com/chef/train/compare/0.9.0...v0.9.1)
|
269
|
+
|
270
|
+
**Implemented enhancements:**
|
271
|
+
|
272
|
+
- R train [\#27](https://github.com/chef/train/pull/27) ([arlimus](https://github.com/arlimus))
|
273
|
+
- Update style of readme [\#26](https://github.com/chef/train/pull/26) ([chris-rock](https://github.com/chris-rock))
|
274
|
+
- Add Apache 2.0 License [\#25](https://github.com/chef/train/pull/25) ([jamesc](https://github.com/jamesc))
|
275
|
+
|
276
|
+
## [0.9.0](https://github.com/chef/train/tree/0.9.0) (2015-11-03)
|
277
|
+
**Implemented enhancements:**
|
278
|
+
|
279
|
+
- set windows name in :release [\#23](https://github.com/chef/train/pull/23) ([arlimus](https://github.com/arlimus))
|
280
|
+
- basic file transport via winrm [\#21](https://github.com/chef/train/pull/21) ([chris-rock](https://github.com/chris-rock))
|
281
|
+
- dont return nil on command errors stdout/stderr [\#20](https://github.com/chef/train/pull/20) ([arlimus](https://github.com/arlimus))
|
282
|
+
- skip .delivery in gemspec [\#19](https://github.com/chef/train/pull/19) ([arlimus](https://github.com/arlimus))
|
283
|
+
- Verify sudo is working and fail with error messages if it isn't [\#18](https://github.com/chef/train/pull/18) ([arlimus](https://github.com/arlimus))
|
284
|
+
- improve file eposure [\#16](https://github.com/chef/train/pull/16) ([chris-rock](https://github.com/chris-rock))
|
285
|
+
- add delivery [\#13](https://github.com/chef/train/pull/13) ([arlimus](https://github.com/arlimus))
|
286
|
+
- Sudo [\#12](https://github.com/chef/train/pull/12) ([arlimus](https://github.com/arlimus))
|
287
|
+
- Extract options handling for transport [\#11](https://github.com/chef/train/pull/11) ([arlimus](https://github.com/arlimus))
|
288
|
+
- don't let mock commands return nil on stdout or stderr [\#10](https://github.com/chef/train/pull/10) ([arlimus](https://github.com/arlimus))
|
289
|
+
- allow mock command to support sha256 mocking of commands [\#9](https://github.com/chef/train/pull/9) ([arlimus](https://github.com/arlimus))
|
290
|
+
- register plugins with both names and symbols [\#8](https://github.com/chef/train/pull/8) ([arlimus](https://github.com/arlimus))
|
291
|
+
- split of mock into transport and connection [\#7](https://github.com/chef/train/pull/7) ([arlimus](https://github.com/arlimus))
|
292
|
+
- bugfix: add docker dependency to gemspec [\#6](https://github.com/chef/train/pull/6) ([arlimus](https://github.com/arlimus))
|
293
|
+
- move train/plugins/common to train/extras [\#2](https://github.com/chef/train/pull/2) ([arlimus](https://github.com/arlimus))
|
294
|
+
- add Travis [\#1](https://github.com/chef/train/pull/1) ([arlimus](https://github.com/arlimus))
|
295
|
+
|
296
|
+
**Fixed bugs:**
|
297
|
+
|
298
|
+
- bugfix: prevent debugging info to stdout on winrm [\#22](https://github.com/chef/train/pull/22) ([arlimus](https://github.com/arlimus))
|
299
|
+
- bugfix: fail ssh connections correctly [\#17](https://github.com/chef/train/pull/17) ([arlimus](https://github.com/arlimus))
|
300
|
+
- bugfix: initialize mock transport to correct family [\#14](https://github.com/chef/train/pull/14) ([arlimus](https://github.com/arlimus))
|
301
|
+
|
302
|
+
**Merged pull requests:**
|
303
|
+
|
304
|
+
- bump train version to 0.9.0 [\#24](https://github.com/chef/train/pull/24) ([chris-rock](https://github.com/chris-rock))
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
source 'https://rubygems.org'
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
# pin dependency for Ruby 1.9.3 since bundler is not
|
6
|
+
# detecting that net-ssh 3 does not work with 1.9.3
|
7
|
+
if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new('1.9.3')
|
8
|
+
gem 'net-ssh', '~> 2.9'
|
9
|
+
end
|
10
|
+
|
11
|
+
group :test do
|
12
|
+
gem 'bundler', '~> 1.11'
|
13
|
+
gem 'minitest', '~> 5.8'
|
14
|
+
gem 'rake', '~> 10'
|
15
|
+
gem 'rubocop', '~> 0.36.0'
|
16
|
+
gem 'simplecov', '~> 0.10'
|
17
|
+
gem 'concurrent-ruby', '~> 0.9'
|
18
|
+
end
|
19
|
+
|
20
|
+
group :integration do
|
21
|
+
gem 'berkshelf', '~> 4.0'
|
22
|
+
gem 'test-kitchen', '~> 1.4'
|
23
|
+
gem 'kitchen-vagrant'
|
24
|
+
end
|
25
|
+
|
26
|
+
group :tools do
|
27
|
+
gem 'pry', '~> 0.10'
|
28
|
+
gem 'license_finder'
|
29
|
+
gem 'github_changelog_generator', '~> 1'
|
30
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|