r10k 1.3.5 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +1 -1
- data/CHANGELOG.mkd +210 -0
- data/CONTRIBUTING.mkd +105 -0
- data/Gemfile +2 -6
- data/README.mkd +97 -0
- data/doc/common-patterns.mkd +44 -0
- data/doc/dynamic-environments.mkd +12 -5
- data/doc/dynamic-environments/configuration.mkd +16 -1
- data/doc/dynamic-environments/{git-environments.markdown → git-environments.mkd} +13 -9
- data/doc/dynamic-environments/introduction.mkd +1 -2
- data/doc/dynamic-environments/master-configuration.mkd +70 -0
- data/doc/dynamic-environments/quickstart.mkd +241 -0
- data/doc/dynamic-environments/svn-environments.mkd +45 -0
- data/doc/dynamic-environments/usage.mkd +44 -5
- data/doc/dynamic-environments/workflow-guide.mkd +247 -0
- data/doc/faq.mkd +52 -0
- data/doc/puppetfile.mkd +203 -0
- data/lib/r10k/action/cri_runner.rb +75 -0
- data/lib/r10k/action/deploy.rb +9 -0
- data/lib/r10k/action/deploy/display.rb +104 -0
- data/lib/r10k/action/deploy/environment.rb +92 -0
- data/lib/r10k/action/deploy/module.rb +70 -0
- data/lib/r10k/action/puppetfile.rb +10 -0
- data/lib/r10k/action/puppetfile/check.rb +41 -0
- data/lib/r10k/action/puppetfile/cri_runner.rb +32 -0
- data/lib/r10k/action/puppetfile/install.rb +53 -0
- data/lib/r10k/action/puppetfile/purge.rb +37 -0
- data/lib/r10k/action/runner.rb +36 -0
- data/lib/r10k/action/visitor.rb +31 -0
- data/lib/r10k/cli/deploy.rb +14 -45
- data/lib/r10k/cli/puppetfile.rb +15 -53
- data/lib/r10k/deployment.rb +113 -58
- data/lib/r10k/deployment/basedir.rb +3 -38
- data/lib/r10k/deployment/config.rb +2 -1
- data/lib/r10k/deployment/source.rb +2 -0
- data/lib/r10k/environment/base.rb +40 -0
- data/lib/r10k/environment/git.rb +14 -17
- data/lib/r10k/environment/svn.rb +31 -15
- data/lib/r10k/errors.rb +33 -22
- data/lib/r10k/errors/formatting.rb +28 -0
- data/lib/r10k/execution.rb +2 -0
- data/lib/r10k/git/cache.rb +1 -6
- data/lib/r10k/git/errors.rb +1 -2
- data/lib/r10k/git/ref.rb +1 -1
- data/lib/r10k/module.rb +1 -1
- data/lib/r10k/module/base.rb +94 -2
- data/lib/r10k/module/forge.rb +33 -30
- data/lib/r10k/module/git.rb +13 -9
- data/lib/r10k/module/svn.rb +41 -28
- data/lib/r10k/puppetfile.rb +17 -1
- data/lib/r10k/semver.rb +2 -0
- data/lib/r10k/source/base.rb +8 -0
- data/lib/r10k/source/git.rb +1 -1
- data/lib/r10k/source/svn.rb +23 -5
- data/lib/r10k/svn/remote.rb +23 -3
- data/lib/r10k/svn/working_dir.rb +60 -9
- data/lib/r10k/task.rb +1 -0
- data/lib/r10k/task/deployment.rb +9 -1
- data/lib/r10k/task/environment.rb +2 -0
- data/lib/r10k/task/module.rb +1 -0
- data/lib/r10k/task/puppetfile.rb +3 -0
- data/lib/r10k/task_runner.rb +1 -0
- data/lib/r10k/util/attempt.rb +84 -0
- data/lib/r10k/util/basedir.rb +65 -0
- data/lib/r10k/util/purgeable.rb +55 -45
- data/lib/r10k/util/setopts.rb +53 -0
- data/lib/r10k/util/subprocess.rb +6 -30
- data/lib/r10k/util/subprocess/posix/runner.rb +29 -2
- data/lib/r10k/util/subprocess/result.rb +17 -4
- data/lib/r10k/util/subprocess/subprocess_error.rb +24 -0
- data/lib/r10k/version.rb +1 -1
- data/r10k.gemspec +7 -29
- data/spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile +1 -0
- data/spec/fixtures/unit/puppetfile/load-error/Puppetfile +1 -0
- data/spec/matchers/exit_with.rb +28 -0
- data/spec/r10k-mocks.rb +3 -0
- data/spec/r10k-mocks/mock_config.rb +28 -0
- data/spec/r10k-mocks/mock_env.rb +7 -0
- data/spec/r10k-mocks/mock_source.rb +10 -0
- data/spec/shared-examples/git-ref.rb +7 -7
- data/spec/spec_helper.rb +17 -5
- data/spec/unit/action/cri_runner_spec.rb +76 -0
- data/spec/unit/action/puppetfile/cri_action_spec.rb +65 -0
- data/spec/unit/action/runner_spec.rb +64 -0
- data/spec/unit/action/visitor_spec.rb +39 -0
- data/spec/unit/deployment_spec.rb +142 -0
- data/spec/unit/environment/base_spec.rb +38 -0
- data/spec/unit/environment/git_spec.rb +40 -10
- data/spec/unit/environment/svn_spec.rb +41 -4
- data/spec/unit/errors/formatting_spec.rb +84 -0
- data/spec/unit/git/alternates_spec.rb +1 -1
- data/spec/unit/git/head_spec.rb +1 -1
- data/spec/unit/git/ref_spec.rb +1 -1
- data/spec/unit/git/working_dir_spec.rb +1 -1
- data/spec/unit/module/base_spec.rb +72 -0
- data/spec/unit/module/forge_spec.rb +49 -8
- data/spec/unit/module/git_spec.rb +78 -0
- data/spec/unit/module/svn_spec.rb +40 -4
- data/spec/unit/module_spec.rb +3 -3
- data/spec/unit/puppetfile_spec.rb +84 -0
- data/spec/unit/settings/container_spec.rb +1 -1
- data/spec/unit/source/base_spec.rb +31 -0
- data/spec/unit/source/git_spec.rb +7 -7
- data/spec/unit/source/svn_spec.rb +1 -1
- data/spec/unit/svn/working_dir_spec.rb +56 -0
- data/spec/unit/util/attempt_spec.rb +82 -0
- data/spec/unit/util/setopts_spec.rb +59 -0
- data/spec/unit/util/subprocess/result_spec.rb +36 -0
- data/spec/unit/util/subprocess/subprocess_error_spec.rb +26 -0
- data/spec/unit/util/subprocess_spec.rb +2 -7
- metadata +83 -100
- data/.nodeset.yml +0 -7
- data/.rspec +0 -1
- data/README.markdown +0 -276
- data/Rakefile +0 -1
- data/doc/puppetfile.markdown +0 -87
- data/spec/rspec-system-r10k/puppetfile.rb +0 -24
- data/spec/rspec-system-r10k/tmpdir.rb +0 -32
- data/spec/system-provisioning/el.rb +0 -38
- data/spec/system/module/forge/install_spec.rb +0 -51
- data/spec/system/module/git/install_spec.rb +0 -117
- data/spec/system/module/svn/install_spec.rb +0 -51
- data/spec/system/module/svn/update_spec.rb +0 -38
- data/spec/system/spec_helper.rb +0 -60
- data/spec/system/system-helpers.rb +0 -4
- data/spec/system/version_spec.rb +0 -7
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'r10k/util/subprocess'
|
3
|
+
|
4
|
+
describe R10K::Util::Subprocess::SubprocessError do
|
5
|
+
let(:result) do
|
6
|
+
R10K::Util::Subprocess::Result.new(%w[/usr/bin/gti --zoom], "zooming on stdout", "zooming on stderr", 42)
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "formatting the message" do
|
10
|
+
subject(:message) { described_class.new("Execution failed", :result => result).message }
|
11
|
+
|
12
|
+
it "includes the exception message and formatted result" do
|
13
|
+
expect(message).to eq(
|
14
|
+
[
|
15
|
+
"Execution failed:",
|
16
|
+
"Command: /usr/bin/gti --zoom",
|
17
|
+
"Stdout:",
|
18
|
+
"zooming on stdout",
|
19
|
+
"Stderr:",
|
20
|
+
"zooming on stderr",
|
21
|
+
"Exit code: 42",
|
22
|
+
].join("\n")
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -19,8 +19,7 @@ describe R10K::Util::Subprocess do
|
|
19
19
|
|
20
20
|
let(:runner) do
|
21
21
|
double('R10K::Util::Subprocess::Runner').tap do |i|
|
22
|
-
allow(i).to receive(:run)
|
23
|
-
allow(i).to receive(:result).and_return(result)
|
22
|
+
allow(i).to receive(:run).and_return(result)
|
24
23
|
end
|
25
24
|
end
|
26
25
|
|
@@ -46,10 +45,6 @@ describe R10K::Util::Subprocess do
|
|
46
45
|
end
|
47
46
|
|
48
47
|
it "raises an exception if raise_on_fail is true" do
|
49
|
-
if RUBY_VERSION =~ /^2\./
|
50
|
-
pending "Ruby 2.x and RSpec 2.x fail when raising an exception with a custom #to_s method"
|
51
|
-
end
|
52
|
-
|
53
48
|
subject.raise_on_fail = true
|
54
49
|
|
55
50
|
allow(result).to receive(:exit_code).and_return(255)
|
@@ -57,7 +52,7 @@ describe R10K::Util::Subprocess do
|
|
57
52
|
|
58
53
|
expect {
|
59
54
|
subject.execute
|
60
|
-
}.to raise_error(R10K::Util::Subprocess::SubprocessError, /Command
|
55
|
+
}.to raise_error(R10K::Util::Subprocess::SubprocessError, /Command exited with non-zero exit code/)
|
61
56
|
end
|
62
57
|
|
63
58
|
it "doesn't raise an exception if raise_on_fail is false" do
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r10k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Adrien Thebo
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-12-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: colored
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.2'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.2'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: cri
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.
|
33
|
+
version: 2.6.1
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.
|
40
|
+
version: 2.6.1
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: systemu
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,23 +55,20 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: log4r
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: 1.1.10
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: 1.1.10
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: multi_json
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,23 +83,20 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: json_pure
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ~>
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version: 1.8
|
89
|
+
version: '1.8'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ~>
|
108
95
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.8
|
96
|
+
version: '1.8'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: faraday
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ~>
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ~>
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -126,7 +111,6 @@ dependencies:
|
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: faraday_middleware
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
115
|
- - ~>
|
132
116
|
- !ruby/object:Gem::Version
|
@@ -134,7 +118,6 @@ dependencies:
|
|
134
118
|
type: :runtime
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
122
|
- - ~>
|
140
123
|
- !ruby/object:Gem::Version
|
@@ -142,7 +125,6 @@ dependencies:
|
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: faraday_middleware-multi_json
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
129
|
- - ~>
|
148
130
|
- !ruby/object:Gem::Version
|
@@ -150,7 +132,6 @@ dependencies:
|
|
150
132
|
type: :runtime
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
136
|
- - ~>
|
156
137
|
- !ruby/object:Gem::Version
|
@@ -158,39 +139,34 @@ dependencies:
|
|
158
139
|
- !ruby/object:Gem::Dependency
|
159
140
|
name: rspec
|
160
141
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
142
|
requirements:
|
163
143
|
- - ~>
|
164
144
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
145
|
+
version: '3.1'
|
166
146
|
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
149
|
requirements:
|
171
150
|
- - ~>
|
172
151
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
152
|
+
version: '3.1'
|
174
153
|
- !ruby/object:Gem::Dependency
|
175
154
|
name: vcr
|
176
155
|
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
156
|
requirements:
|
179
157
|
- - ~>
|
180
158
|
- !ruby/object:Gem::Version
|
181
|
-
version: 2.
|
159
|
+
version: '2.9'
|
182
160
|
type: :development
|
183
161
|
prerelease: false
|
184
162
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
163
|
requirements:
|
187
164
|
- - ~>
|
188
165
|
- !ruby/object:Gem::Version
|
189
|
-
version: 2.
|
166
|
+
version: '2.9'
|
190
167
|
- !ruby/object:Gem::Dependency
|
191
168
|
name: yard
|
192
169
|
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
170
|
requirements:
|
195
171
|
- - ~>
|
196
172
|
- !ruby/object:Gem::Version
|
@@ -198,7 +174,6 @@ dependencies:
|
|
198
174
|
type: :development
|
199
175
|
prerelease: false
|
200
176
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
177
|
requirements:
|
203
178
|
- - ~>
|
204
179
|
- !ruby/object:Gem::Version
|
@@ -213,22 +188,38 @@ extensions: []
|
|
213
188
|
extra_rdoc_files: []
|
214
189
|
files:
|
215
190
|
- .gitignore
|
216
|
-
- .nodeset.yml
|
217
|
-
- .rspec
|
218
191
|
- .travis.yml
|
219
192
|
- CHANGELOG.mkd
|
193
|
+
- CONTRIBUTING.mkd
|
220
194
|
- Gemfile
|
221
195
|
- LICENSE
|
222
|
-
- README.
|
223
|
-
- Rakefile
|
196
|
+
- README.mkd
|
224
197
|
- bin/r10k
|
198
|
+
- doc/common-patterns.mkd
|
225
199
|
- doc/dynamic-environments.mkd
|
226
200
|
- doc/dynamic-environments/configuration.mkd
|
227
|
-
- doc/dynamic-environments/git-environments.
|
201
|
+
- doc/dynamic-environments/git-environments.mkd
|
228
202
|
- doc/dynamic-environments/introduction.mkd
|
203
|
+
- doc/dynamic-environments/master-configuration.mkd
|
204
|
+
- doc/dynamic-environments/quickstart.mkd
|
205
|
+
- doc/dynamic-environments/svn-environments.mkd
|
229
206
|
- doc/dynamic-environments/usage.mkd
|
230
|
-
- doc/
|
207
|
+
- doc/dynamic-environments/workflow-guide.mkd
|
208
|
+
- doc/faq.mkd
|
209
|
+
- doc/puppetfile.mkd
|
231
210
|
- lib/r10k.rb
|
211
|
+
- lib/r10k/action/cri_runner.rb
|
212
|
+
- lib/r10k/action/deploy.rb
|
213
|
+
- lib/r10k/action/deploy/display.rb
|
214
|
+
- lib/r10k/action/deploy/environment.rb
|
215
|
+
- lib/r10k/action/deploy/module.rb
|
216
|
+
- lib/r10k/action/puppetfile.rb
|
217
|
+
- lib/r10k/action/puppetfile/check.rb
|
218
|
+
- lib/r10k/action/puppetfile/cri_runner.rb
|
219
|
+
- lib/r10k/action/puppetfile/install.rb
|
220
|
+
- lib/r10k/action/puppetfile/purge.rb
|
221
|
+
- lib/r10k/action/runner.rb
|
222
|
+
- lib/r10k/action/visitor.rb
|
232
223
|
- lib/r10k/cli.rb
|
233
224
|
- lib/r10k/cli/deploy.rb
|
234
225
|
- lib/r10k/cli/environment.rb
|
@@ -254,6 +245,7 @@ files:
|
|
254
245
|
- lib/r10k/environment/git.rb
|
255
246
|
- lib/r10k/environment/svn.rb
|
256
247
|
- lib/r10k/errors.rb
|
248
|
+
- lib/r10k/errors/formatting.rb
|
257
249
|
- lib/r10k/execution.rb
|
258
250
|
- lib/r10k/git.rb
|
259
251
|
- lib/r10k/git/alternates.rb
|
@@ -296,9 +288,12 @@ files:
|
|
296
288
|
- lib/r10k/task/module.rb
|
297
289
|
- lib/r10k/task/puppetfile.rb
|
298
290
|
- lib/r10k/task_runner.rb
|
291
|
+
- lib/r10k/util/attempt.rb
|
292
|
+
- lib/r10k/util/basedir.rb
|
299
293
|
- lib/r10k/util/core_ext/hash_ext.rb
|
300
294
|
- lib/r10k/util/platform.rb
|
301
295
|
- lib/r10k/util/purgeable.rb
|
296
|
+
- lib/r10k/util/setopts.rb
|
302
297
|
- lib/r10k/util/subprocess.rb
|
303
298
|
- lib/r10k/util/subprocess/io.rb
|
304
299
|
- lib/r10k/util/subprocess/posix.rb
|
@@ -306,6 +301,7 @@ files:
|
|
306
301
|
- lib/r10k/util/subprocess/posix/runner.rb
|
307
302
|
- lib/r10k/util/subprocess/result.rb
|
308
303
|
- lib/r10k/util/subprocess/runner.rb
|
304
|
+
- lib/r10k/util/subprocess/subprocess_error.rb
|
309
305
|
- lib/r10k/util/subprocess/windows.rb
|
310
306
|
- lib/r10k/util/subprocess/windows/io.rb
|
311
307
|
- lib/r10k/util/subprocess/windows/runner.rb
|
@@ -315,28 +311,32 @@ files:
|
|
315
311
|
- spec/fixtures/empty/.empty
|
316
312
|
- spec/fixtures/module/forge/eight_hundred/Modulefile
|
317
313
|
- spec/fixtures/module/forge/eight_hundred/metadata.json
|
314
|
+
- spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile
|
315
|
+
- spec/fixtures/unit/puppetfile/load-error/Puppetfile
|
318
316
|
- spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/can_fetch_all_versions_of_a_given_module.yml
|
319
317
|
- spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/can_fetch_the_latest_version_of_a_given_module.yml
|
320
318
|
- spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions.yml
|
321
319
|
- spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions/can_fetch_all_versions_of_a_given_module.yml
|
322
320
|
- spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions/can_fetch_the_latest_version_of_a_given_module.yml
|
323
321
|
- spec/fixtures/vcr/cassettes/R10K_Module_Forge/and_the_expected_version_is_latest/sets_the_expected_version_based_on_the_latest_forge_version.yml
|
324
|
-
- spec/
|
325
|
-
- spec/
|
322
|
+
- spec/matchers/exit_with.rb
|
323
|
+
- spec/r10k-mocks.rb
|
324
|
+
- spec/r10k-mocks/mock_config.rb
|
325
|
+
- spec/r10k-mocks/mock_env.rb
|
326
|
+
- spec/r10k-mocks/mock_source.rb
|
326
327
|
- spec/shared-examples/git-ref.rb
|
327
328
|
- spec/spec_helper.rb
|
328
|
-
- spec/
|
329
|
-
- spec/
|
330
|
-
- spec/
|
331
|
-
- spec/
|
332
|
-
- spec/system/module/svn/update_spec.rb
|
333
|
-
- spec/system/spec_helper.rb
|
334
|
-
- spec/system/system-helpers.rb
|
335
|
-
- spec/system/version_spec.rb
|
329
|
+
- spec/unit/action/cri_runner_spec.rb
|
330
|
+
- spec/unit/action/puppetfile/cri_action_spec.rb
|
331
|
+
- spec/unit/action/runner_spec.rb
|
332
|
+
- spec/unit/action/visitor_spec.rb
|
336
333
|
- spec/unit/deployment/environment_spec.rb
|
337
334
|
- spec/unit/deployment/source_spec.rb
|
335
|
+
- spec/unit/deployment_spec.rb
|
336
|
+
- spec/unit/environment/base_spec.rb
|
338
337
|
- spec/unit/environment/git_spec.rb
|
339
338
|
- spec/unit/environment/svn_spec.rb
|
339
|
+
- spec/unit/errors/formatting_spec.rb
|
340
340
|
- spec/unit/git/alternates_spec.rb
|
341
341
|
- spec/unit/git/cache_spec.rb
|
342
342
|
- spec/unit/git/commit_spec.rb
|
@@ -347,84 +347,53 @@ files:
|
|
347
347
|
- spec/unit/git/working_dir_spec.rb
|
348
348
|
- spec/unit/instance_cache_spec.rb
|
349
349
|
- spec/unit/keyed_factory_spec.rb
|
350
|
+
- spec/unit/module/base_spec.rb
|
350
351
|
- spec/unit/module/forge_spec.rb
|
351
352
|
- spec/unit/module/git_spec.rb
|
352
353
|
- spec/unit/module/metadata_spec.rb
|
353
354
|
- spec/unit/module/svn_spec.rb
|
354
355
|
- spec/unit/module_repository/forge_spec.rb
|
355
356
|
- spec/unit/module_spec.rb
|
357
|
+
- spec/unit/puppetfile_spec.rb
|
356
358
|
- spec/unit/settings/container_spec.rb
|
359
|
+
- spec/unit/source/base_spec.rb
|
357
360
|
- spec/unit/source/git_spec.rb
|
358
361
|
- spec/unit/source/svn_spec.rb
|
359
362
|
- spec/unit/source_spec.rb
|
360
363
|
- spec/unit/svn/remote_spec.rb
|
364
|
+
- spec/unit/svn/working_dir_spec.rb
|
365
|
+
- spec/unit/util/attempt_spec.rb
|
361
366
|
- spec/unit/util/core_ext/hash_ext_spec.rb
|
367
|
+
- spec/unit/util/setopts_spec.rb
|
368
|
+
- spec/unit/util/subprocess/result_spec.rb
|
369
|
+
- spec/unit/util/subprocess/subprocess_error_spec.rb
|
362
370
|
- spec/unit/util/subprocess_spec.rb
|
363
371
|
homepage: http://github.com/adrienthebo/r10k
|
364
372
|
licenses:
|
365
|
-
- Apache
|
366
|
-
|
367
|
-
|
368
|
-
======
|
369
|
-
|
370
|
-
|
371
|
-
If you are upgrading from 1.1.0 and are using multiple sources, please read
|
372
|
-
|
373
|
-
this. (If not, feel free to continue with your regularly scheduled day.)
|
374
|
-
|
375
|
-
|
376
|
-
GH-48 (https://github.com/adrienthebo/r10k/issues/48) introduced the ability
|
377
|
-
|
378
|
-
for environments to be prefixed with the source name so that multiple sources
|
379
|
-
|
380
|
-
installed into the same directory would not overwrite each other. However
|
381
|
-
|
382
|
-
prefixing was automatically enabled and would break existing setups where
|
383
|
-
|
384
|
-
multiple sources were cloned into different directories.
|
385
|
-
|
386
|
-
|
387
|
-
Because this introduced a breaking change, SemVer dictates that the automatic
|
388
|
-
|
389
|
-
prefixing has to be rolled back. Prefixing can be enabled but always defaults
|
390
|
-
|
391
|
-
to off. If you are relying on this behavior you will need to update your r10k.yaml
|
392
|
-
|
393
|
-
to enable prefixing on a per-source basis.
|
394
|
-
|
395
|
-
|
396
|
-
Please see the issue (https://github.com/adrienthebo/r10k/issues/48) for more
|
397
|
-
|
398
|
-
information.
|
399
|
-
|
400
|
-
'
|
373
|
+
- Apache-2.0
|
374
|
+
metadata: {}
|
375
|
+
post_install_message:
|
401
376
|
rdoc_options: []
|
402
377
|
require_paths:
|
403
378
|
- lib
|
404
379
|
required_ruby_version: !ruby/object:Gem::Requirement
|
405
|
-
none: false
|
406
380
|
requirements:
|
407
381
|
- - ! '>='
|
408
382
|
- !ruby/object:Gem::Version
|
409
383
|
version: '0'
|
410
384
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
411
|
-
none: false
|
412
385
|
requirements:
|
413
386
|
- - ! '>='
|
414
387
|
- !ruby/object:Gem::Version
|
415
388
|
version: '0'
|
416
389
|
requirements: []
|
417
390
|
rubyforge_project:
|
418
|
-
rubygems_version:
|
391
|
+
rubygems_version: 2.4.4
|
419
392
|
signing_key:
|
420
|
-
specification_version:
|
393
|
+
specification_version: 4
|
421
394
|
summary: Puppet environment and module deployment
|
422
395
|
test_files:
|
423
|
-
- spec/
|
424
|
-
- spec/system/module/git/install_spec.rb
|
425
|
-
- spec/system/module/forge/install_spec.rb
|
426
|
-
- spec/system/module/svn/update_spec.rb
|
427
|
-
- spec/system/module/svn/install_spec.rb
|
396
|
+
- spec/unit/environment/base_spec.rb
|
428
397
|
- spec/unit/environment/svn_spec.rb
|
429
398
|
- spec/unit/environment/git_spec.rb
|
430
399
|
- spec/unit/module_spec.rb
|
@@ -441,14 +410,28 @@ test_files:
|
|
441
410
|
- spec/unit/deployment/environment_spec.rb
|
442
411
|
- spec/unit/deployment/source_spec.rb
|
443
412
|
- spec/unit/source_spec.rb
|
413
|
+
- spec/unit/puppetfile_spec.rb
|
414
|
+
- spec/unit/util/attempt_spec.rb
|
415
|
+
- spec/unit/util/setopts_spec.rb
|
416
|
+
- spec/unit/util/subprocess/result_spec.rb
|
417
|
+
- spec/unit/util/subprocess/subprocess_error_spec.rb
|
444
418
|
- spec/unit/util/subprocess_spec.rb
|
445
419
|
- spec/unit/util/core_ext/hash_ext_spec.rb
|
420
|
+
- spec/unit/errors/formatting_spec.rb
|
446
421
|
- spec/unit/instance_cache_spec.rb
|
422
|
+
- spec/unit/action/visitor_spec.rb
|
423
|
+
- spec/unit/action/cri_runner_spec.rb
|
424
|
+
- spec/unit/action/puppetfile/cri_action_spec.rb
|
425
|
+
- spec/unit/action/runner_spec.rb
|
447
426
|
- spec/unit/settings/container_spec.rb
|
427
|
+
- spec/unit/svn/working_dir_spec.rb
|
448
428
|
- spec/unit/svn/remote_spec.rb
|
429
|
+
- spec/unit/source/base_spec.rb
|
449
430
|
- spec/unit/source/svn_spec.rb
|
450
431
|
- spec/unit/source/git_spec.rb
|
432
|
+
- spec/unit/deployment_spec.rb
|
451
433
|
- spec/unit/module/forge_spec.rb
|
434
|
+
- spec/unit/module/base_spec.rb
|
452
435
|
- spec/unit/module/svn_spec.rb
|
453
436
|
- spec/unit/module/git_spec.rb
|
454
437
|
- spec/unit/module/metadata_spec.rb
|