rudder 0.2.2 → 0.3.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/docs/CNAME +1 -0
- data/docs/Rudder/DSL/Component.html +1 -1
- data/docs/Rudder/DSL/Group.html +1 -1
- data/docs/Rudder/DSL/Job.html +1 -1
- data/docs/Rudder/DSL/Pipeline.html +270 -132
- data/docs/Rudder/DSL/Resource.html +1 -1
- data/docs/Rudder/DSL/ResourceType.html +1 -1
- data/docs/Rudder/DSL/Util.html +1 -1
- data/docs/Rudder/DSL.html +50 -16
- data/docs/Rudder.html +29 -12
- data/docs/_index.html +1 -1
- data/docs/file.README.html +3 -3
- data/docs/index.html +3 -3
- data/docs/method_list.html +8 -0
- data/docs/top-level-namespace.html +1 -1
- data/examples/images/vars/vars.png +0 -0
- data/examples/vars/README.md +6 -0
- data/examples/vars/vars.yml +4 -0
- data/examples/vars/vars_pipeline.rb +23 -0
- data/exe/rudder +10 -2
- data/lib/rudder/dsl/pipeline.rb +35 -1
- data/lib/rudder/dsl.rb +6 -4
- data/lib/rudder/version.rb +1 -1
- data/lib/rudder.rb +3 -2
- metadata +9 -4
|
@@ -157,6 +157,15 @@ then loaded into a <span class='object_link'><a href="" title="Rudder::DSL::Pipe
|
|
|
157
157
|
<span class='object_link'><a href="#include_component-instance_method" title="Rudder::DSL::Pipeline#include_component (method)">#include_component</a></span>. This is useful for factoring out
|
|
158
158
|
common resources for multiple pipeline's to use.</p>
|
|
159
159
|
|
|
160
|
+
<h3 id="label-Loading+Concourse+Variables">Loading Concourse Variables</h3>
|
|
161
|
+
|
|
162
|
+
<p>Occasionally it is helpful to have access to concourse variable when
|
|
163
|
+
generating a pipeline, for example, when a Rudder pipeline should be
|
|
164
|
+
parameterized on some value already stored in a Concourse parameter file.
|
|
165
|
+
Rudder supports loading a concourse vars file from the <span class='object_link'><a href="../../Rudder.html" title="Rudder (module)">Rudder</a></span> command
|
|
166
|
+
line. These are exposed to the pipeline dsl through the <code>vars</code>
|
|
167
|
+
accessor.</p>
|
|
168
|
+
|
|
160
169
|
|
|
161
170
|
</div>
|
|
162
171
|
</div>
|
|
@@ -257,6 +266,27 @@ end</code></pre>
|
|
|
257
266
|
<span class='rbrace'>}</span>
|
|
258
267
|
<span class='kw'>end</span></code></pre>
|
|
259
268
|
|
|
269
|
+
|
|
270
|
+
<p class="example_title"><div class='inline'>
|
|
271
|
+
<p>Loading Concourse Variables</p>
|
|
272
|
+
</div></p>
|
|
273
|
+
|
|
274
|
+
<pre class="example code"><code>#
|
|
275
|
+
# vars_pipeline.rb
|
|
276
|
+
#
|
|
277
|
+
# Assuming a variables file of the form:
|
|
278
|
+
#
|
|
279
|
+
# my_branch: awesome-feature
|
|
280
|
+
#
|
|
281
|
+
|
|
282
|
+
my_branch = vars[:my_branch] # <--- Pulls in the variable here
|
|
283
|
+
|
|
284
|
+
resource :my_git_repo, :git do
|
|
285
|
+
source[:uri] = 'https://github.com/my/repo.git'
|
|
286
|
+
source[:branch] = my_branch
|
|
287
|
+
end
|
|
288
|
+
...</code></pre>
|
|
289
|
+
|
|
260
290
|
</div>
|
|
261
291
|
|
|
262
292
|
|
|
@@ -379,6 +409,33 @@ end</code></pre>
|
|
|
379
409
|
<p>Hash of names to <span class='object_link'><a href="Resource.html" title="Rudder::DSL::Resource (class)">Resource</a></span>.</p>
|
|
380
410
|
</div></span>
|
|
381
411
|
|
|
412
|
+
</li>
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
<li class="public ">
|
|
416
|
+
<span class="summary_signature">
|
|
417
|
+
|
|
418
|
+
<a href="#vars-instance_method" title="#vars (instance method)">#<strong>vars</strong> ⇒ Hash<Symbol, (String,Float,Hash,Array)> </a>
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
</span>
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
<span class="summary_desc"><div class='inline'>
|
|
436
|
+
<p>Hash of concourse variables.</p>
|
|
437
|
+
</div></span>
|
|
438
|
+
|
|
382
439
|
</li>
|
|
383
440
|
|
|
384
441
|
|
|
@@ -472,7 +529,7 @@ it, creates a new component.</p>
|
|
|
472
529
|
<li class="public ">
|
|
473
530
|
<span class="summary_signature">
|
|
474
531
|
|
|
475
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(file_path = nil, resources: {}, jobs: {}, groups: {}, resource_types: {}) ⇒ Pipeline </a>
|
|
532
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(file_path = nil, resources: {}, jobs: {}, groups: {}, resource_types: {}, vars: {}) ⇒ Pipeline </a>
|
|
476
533
|
|
|
477
534
|
|
|
478
535
|
|
|
@@ -685,7 +742,7 @@ representations.</p>
|
|
|
685
742
|
<div class="method_details first">
|
|
686
743
|
<h3 class="signature first" id="initialize-instance_method">
|
|
687
744
|
|
|
688
|
-
#<strong>initialize</strong>(file_path = nil, resources: {}, jobs: {}, groups: {}, resource_types: {}) ⇒ <tt><span class='object_link'><a href="" title="Rudder::DSL::Pipeline (class)">Pipeline</a></span></tt>
|
|
745
|
+
#<strong>initialize</strong>(file_path = nil, resources: {}, jobs: {}, groups: {}, resource_types: {}, vars: {}) ⇒ <tt><span class='object_link'><a href="" title="Rudder::DSL::Pipeline (class)">Pipeline</a></span></tt>
|
|
689
746
|
|
|
690
747
|
|
|
691
748
|
|
|
@@ -808,6 +865,25 @@ map of <span class='object_link'><a href="Resource.html" title="Rudder::DSL::Res
|
|
|
808
865
|
<div class='inline'>
|
|
809
866
|
<p>esources_types [Hash<(String, Symbol), Rudder::DSL::ResourceType] map of
|
|
810
867
|
Resource Type names to their definitions.</p>
|
|
868
|
+
</div>
|
|
869
|
+
|
|
870
|
+
</li>
|
|
871
|
+
|
|
872
|
+
<li>
|
|
873
|
+
|
|
874
|
+
<span class='name'>vars</span>
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
<span class='type'>(<tt>Hash<(String, Symbol), (String,Float,Hash,Array)]
|
|
878
|
+
map of var names to corresponding concourse variable
|
|
879
|
+
value</tt>)</span>
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
—
|
|
884
|
+
<div class='inline'>
|
|
885
|
+
<p>ars [Hash<(String, Symbol), (String,Float,Hash,Array)] map of var
|
|
886
|
+
names to corresponding concourse variable value</p>
|
|
811
887
|
</div>
|
|
812
888
|
|
|
813
889
|
</li>
|
|
@@ -821,29 +897,32 @@ Resource Type names to their definitions.</p>
|
|
|
821
897
|
<pre class="lines">
|
|
822
898
|
|
|
823
899
|
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
900
|
+
214
|
|
901
|
+
215
|
|
902
|
+
216
|
|
903
|
+
217
|
|
904
|
+
218
|
|
905
|
+
219
|
|
906
|
+
220
|
|
907
|
+
221
|
|
908
|
+
222
|
|
909
|
+
223
|
|
910
|
+
224
|
|
911
|
+
225
|
|
912
|
+
226
|
|
913
|
+
227
|
|
914
|
+
228
|
|
915
|
+
229
|
|
916
|
+
230
|
|
917
|
+
231
|
|
918
|
+
232
|
|
919
|
+
233</pre>
|
|
841
920
|
</td>
|
|
842
921
|
<td>
|
|
843
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
922
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 214</span>
|
|
844
923
|
|
|
845
924
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>resources:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>jobs:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span>
|
|
846
|
-
<span class='label'>groups:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>resource_types:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
925
|
+
<span class='label'>groups:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>resource_types:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>vars:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
847
926
|
<span class='ivar'>@resources</span> <span class='op'>=</span> <span class='id identifier rubyid_resources'>resources</span>
|
|
848
927
|
<span class='ivar'>@jobs</span> <span class='op'>=</span> <span class='id identifier rubyid_jobs'>jobs</span>
|
|
849
928
|
<span class='ivar'>@groups</span> <span class='op'>=</span> <span class='id identifier rubyid_groups'>groups</span>
|
|
@@ -858,6 +937,9 @@ Resource Type names to their definitions.</p>
|
|
|
858
937
|
<span class='comment'># rubocop:enable Layout/AlignHash, Layout/SpaceBeforeComma
|
|
859
938
|
</span> <span class='ivar'>@pipelines</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
860
939
|
<span class='ivar'>@file_path</span> <span class='op'>=</span> <span class='id identifier rubyid_file_path'>file_path</span>
|
|
940
|
+
<span class='ivar'>@vars</span> <span class='op'>=</span> <span class='id identifier rubyid_vars'>vars</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
|
941
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rbracket'>]</span>
|
|
942
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
|
|
861
943
|
<span class='kw'>end</span></pre>
|
|
862
944
|
</td>
|
|
863
945
|
</tr>
|
|
@@ -962,27 +1044,27 @@ Otherwise returns <code>nil</code>.</p>
|
|
|
962
1044
|
<pre class="lines">
|
|
963
1045
|
|
|
964
1046
|
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1047
|
+
295
|
|
1048
|
+
296
|
|
1049
|
+
297
|
|
1050
|
+
298
|
|
1051
|
+
299
|
|
1052
|
+
300
|
|
1053
|
+
301
|
|
1054
|
+
302
|
|
1055
|
+
303
|
|
1056
|
+
304
|
|
1057
|
+
305
|
|
1058
|
+
306
|
|
1059
|
+
307
|
|
1060
|
+
308
|
|
1061
|
+
309
|
|
1062
|
+
310
|
|
1063
|
+
311
|
|
1064
|
+
312</pre>
|
|
983
1065
|
</td>
|
|
984
1066
|
<td>
|
|
985
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1067
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 295</span>
|
|
986
1068
|
|
|
987
1069
|
<span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_component_block'>component_block</span><span class='rparen'>)</span>
|
|
988
1070
|
<span class='id identifier rubyid_local_component'>local_component</span> <span class='op'>=</span> <span class='id identifier rubyid__get_local_component'>_get_local_component</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span>
|
|
@@ -1053,12 +1135,12 @@ Otherwise returns <code>nil</code>.</p>
|
|
|
1053
1135
|
<pre class="lines">
|
|
1054
1136
|
|
|
1055
1137
|
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1138
|
+
180
|
|
1139
|
+
181
|
|
1140
|
+
182</pre>
|
|
1059
1141
|
</td>
|
|
1060
1142
|
<td>
|
|
1061
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1143
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 180</span>
|
|
1062
1144
|
|
|
1063
1145
|
<span class='kw'>def</span> <span class='id identifier rubyid_groups'>groups</span>
|
|
1064
1146
|
<span class='ivar'>@groups</span>
|
|
@@ -1109,12 +1191,12 @@ Otherwise returns <code>nil</code>.</p>
|
|
|
1109
1191
|
<pre class="lines">
|
|
1110
1192
|
|
|
1111
1193
|
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1194
|
+
174
|
|
1195
|
+
175
|
|
1196
|
+
176</pre>
|
|
1115
1197
|
</td>
|
|
1116
1198
|
<td>
|
|
1117
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1199
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 174</span>
|
|
1118
1200
|
|
|
1119
1201
|
<span class='kw'>def</span> <span class='id identifier rubyid_jobs'>jobs</span>
|
|
1120
1202
|
<span class='ivar'>@jobs</span>
|
|
@@ -1165,12 +1247,12 @@ Otherwise returns <code>nil</code>.</p>
|
|
|
1165
1247
|
<pre class="lines">
|
|
1166
1248
|
|
|
1167
1249
|
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1250
|
+
177
|
|
1251
|
+
178
|
|
1252
|
+
179</pre>
|
|
1171
1253
|
</td>
|
|
1172
1254
|
<td>
|
|
1173
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1255
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 177</span>
|
|
1174
1256
|
|
|
1175
1257
|
<span class='kw'>def</span> <span class='id identifier rubyid_resource_types'>resource_types</span>
|
|
1176
1258
|
<span class='ivar'>@resource_types</span>
|
|
@@ -1221,12 +1303,12 @@ Otherwise returns <code>nil</code>.</p>
|
|
|
1221
1303
|
<pre class="lines">
|
|
1222
1304
|
|
|
1223
1305
|
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1306
|
+
171
|
|
1307
|
+
172
|
|
1308
|
+
173</pre>
|
|
1227
1309
|
</td>
|
|
1228
1310
|
<td>
|
|
1229
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1311
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 171</span>
|
|
1230
1312
|
|
|
1231
1313
|
<span class='kw'>def</span> <span class='id identifier rubyid_resources'>resources</span>
|
|
1232
1314
|
<span class='ivar'>@resources</span>
|
|
@@ -1236,6 +1318,62 @@ Otherwise returns <code>nil</code>.</p>
|
|
|
1236
1318
|
</table>
|
|
1237
1319
|
</div>
|
|
1238
1320
|
|
|
1321
|
+
|
|
1322
|
+
<span id="vars=-instance_method"></span>
|
|
1323
|
+
<div class="method_details ">
|
|
1324
|
+
<h3 class="signature " id="vars-instance_method">
|
|
1325
|
+
|
|
1326
|
+
#<strong>vars</strong> ⇒ <tt>Hash<Symbol, (String,Float,Hash,Array)></tt>
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
</h3><div class="docstring">
|
|
1333
|
+
<div class="discussion">
|
|
1334
|
+
|
|
1335
|
+
<p>Hash of concourse variables</p>
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
</div>
|
|
1339
|
+
</div>
|
|
1340
|
+
<div class="tags">
|
|
1341
|
+
|
|
1342
|
+
<p class="tag_title">Returns:</p>
|
|
1343
|
+
<ul class="return">
|
|
1344
|
+
|
|
1345
|
+
<li>
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
<span class='type'>(<tt>Hash<Symbol, (String,Float,Hash,Array)></tt>)</span>
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
</li>
|
|
1353
|
+
|
|
1354
|
+
</ul>
|
|
1355
|
+
|
|
1356
|
+
</div><table class="source_code">
|
|
1357
|
+
<tr>
|
|
1358
|
+
<td>
|
|
1359
|
+
<pre class="lines">
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
183
|
|
1363
|
+
184
|
|
1364
|
+
185</pre>
|
|
1365
|
+
</td>
|
|
1366
|
+
<td>
|
|
1367
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 183</span>
|
|
1368
|
+
|
|
1369
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_vars'>vars</span>
|
|
1370
|
+
<span class='ivar'>@vars</span>
|
|
1371
|
+
<span class='kw'>end</span></pre>
|
|
1372
|
+
</td>
|
|
1373
|
+
</tr>
|
|
1374
|
+
</table>
|
|
1375
|
+
</div>
|
|
1376
|
+
|
|
1239
1377
|
</div>
|
|
1240
1378
|
|
|
1241
1379
|
|
|
@@ -1330,20 +1468,20 @@ provided at construction time If both are nil, raises an exception</p>
|
|
|
1330
1468
|
<pre class="lines">
|
|
1331
1469
|
|
|
1332
1470
|
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1471
|
+
337
|
|
1472
|
+
338
|
|
1473
|
+
339
|
|
1474
|
+
340
|
|
1475
|
+
341
|
|
1476
|
+
342
|
|
1477
|
+
343
|
|
1478
|
+
344
|
|
1479
|
+
345
|
|
1480
|
+
346
|
|
1481
|
+
347</pre>
|
|
1344
1482
|
</td>
|
|
1345
1483
|
<td>
|
|
1346
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1484
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 337</span>
|
|
1347
1485
|
|
|
1348
1486
|
<span class='kw'>def</span> <span class='id identifier rubyid_eval'>eval</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1349
1487
|
<span class='ivar'>@file_path</span> <span class='op'>=</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='op'>||</span> <span class='ivar'>@file_path</span>
|
|
@@ -1487,19 +1625,19 @@ constructor.</p>
|
|
|
1487
1625
|
<pre class="lines">
|
|
1488
1626
|
|
|
1489
1627
|
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1628
|
+
405
|
|
1629
|
+
406
|
|
1630
|
+
407
|
|
1631
|
+
408
|
|
1632
|
+
409
|
|
1633
|
+
410
|
|
1634
|
+
411
|
|
1635
|
+
412
|
|
1636
|
+
413
|
|
1637
|
+
414</pre>
|
|
1500
1638
|
</td>
|
|
1501
1639
|
<td>
|
|
1502
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1640
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 405</span>
|
|
1503
1641
|
|
|
1504
1642
|
<span class='kw'>def</span> <span class='id identifier rubyid_include_component'>include_component</span><span class='lparen'>(</span><span class='id identifier rubyid_component_path'>component_path</span><span class='comma'>,</span> <span class='id identifier rubyid_class_sym'>class_sym</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
|
1505
1643
|
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unable to load </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_class_sym'>class_sym</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='ivar'>@known_classes</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_class_sym'>class_sym</span>
|
|
@@ -1585,13 +1723,13 @@ defined component in this pipeline will override the previous definition</p>
|
|
|
1585
1723
|
<pre class="lines">
|
|
1586
1724
|
|
|
1587
1725
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1726
|
+
427
|
|
1727
|
+
428
|
|
1728
|
+
429
|
|
1729
|
+
430</pre>
|
|
1592
1730
|
</td>
|
|
1593
1731
|
<td>
|
|
1594
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1732
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 427</span>
|
|
1595
1733
|
|
|
1596
1734
|
<span class='kw'>def</span> <span class='id identifier rubyid_include_pipeline'>include_pipeline</span><span class='lparen'>(</span><span class='id identifier rubyid_other_pipeline_path'>other_pipeline_path</span><span class='rparen'>)</span>
|
|
1597
1735
|
<span class='id identifier rubyid_pipeline'>pipeline</span> <span class='op'>=</span> <span class='id identifier rubyid_load'>load</span> <span class='id identifier rubyid_other_pipeline_path'>other_pipeline_path</span>
|
|
@@ -1735,24 +1873,24 @@ the other <span class='object_link'><a href="" title="Rudder::DSL::Pipeline (cla
|
|
|
1735
1873
|
<pre class="lines">
|
|
1736
1874
|
|
|
1737
1875
|
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1876
|
+
372
|
|
1877
|
+
373
|
|
1878
|
+
374
|
|
1879
|
+
375
|
|
1880
|
+
376
|
|
1881
|
+
377
|
|
1882
|
+
378
|
|
1883
|
+
379
|
|
1884
|
+
380
|
|
1885
|
+
381
|
|
1886
|
+
382
|
|
1887
|
+
383
|
|
1888
|
+
384
|
|
1889
|
+
385
|
|
1890
|
+
386</pre>
|
|
1753
1891
|
</td>
|
|
1754
1892
|
<td>
|
|
1755
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
1893
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 372</span>
|
|
1756
1894
|
|
|
1757
1895
|
<span class='kw'>def</span> <span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_other_pipeline_path'>other_pipeline_path</span><span class='comma'>,</span> <span class='label'>resources:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>resource_types:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span>
|
|
1758
1896
|
<span class='label'>jobs:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>groups:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
@@ -1880,17 +2018,17 @@ components into their respective Pipeline group by class.</p>
|
|
|
1880
2018
|
<pre class="lines">
|
|
1881
2019
|
|
|
1882
2020
|
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
2021
|
+
459
|
|
2022
|
+
460
|
|
2023
|
+
461
|
|
2024
|
+
462
|
|
2025
|
+
463
|
|
2026
|
+
464
|
|
2027
|
+
465
|
|
2028
|
+
466</pre>
|
|
1891
2029
|
</td>
|
|
1892
2030
|
<td>
|
|
1893
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
2031
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 459</span>
|
|
1894
2032
|
|
|
1895
2033
|
<span class='kw'>def</span> <span class='id identifier rubyid_merge_components'>merge_components</span><span class='lparen'>(</span><span class='id identifier rubyid_components'>components</span><span class='rparen'>)</span>
|
|
1896
2034
|
<span class='kw'>case</span> <span class='id identifier rubyid_components'>components</span>
|
|
@@ -1931,12 +2069,12 @@ components into their respective Pipeline group by class.</p>
|
|
|
1931
2069
|
<pre class="lines">
|
|
1932
2070
|
|
|
1933
2071
|
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
2072
|
+
256
|
|
2073
|
+
257
|
|
2074
|
+
258</pre>
|
|
1937
2075
|
</td>
|
|
1938
2076
|
<td>
|
|
1939
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
2077
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 256</span>
|
|
1940
2078
|
|
|
1941
2079
|
<span class='kw'>def</span> <span class='id identifier rubyid_p_convert_h_val'>p_convert_h_val</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
|
1942
2080
|
<span class='id identifier rubyid__convert_h_val'>_convert_h_val</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
|
@@ -1983,12 +2121,12 @@ components into their respective Pipeline group by class.</p>
|
|
|
1983
2121
|
<pre class="lines">
|
|
1984
2122
|
|
|
1985
2123
|
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2124
|
+
323
|
|
2125
|
+
324
|
|
2126
|
+
325</pre>
|
|
1989
2127
|
</td>
|
|
1990
2128
|
<td>
|
|
1991
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
2129
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 323</span>
|
|
1992
2130
|
|
|
1993
2131
|
<span class='kw'>def</span> <span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid__include_all'>_include_all</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
1994
2132
|
<span class='ivar'>@known_classes</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='id identifier rubyid_name'>name</span>
|
|
@@ -2042,12 +2180,12 @@ components into their respective Pipeline group by class.</p>
|
|
|
2042
2180
|
<pre class="lines">
|
|
2043
2181
|
|
|
2044
2182
|
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2183
|
+
319
|
|
2184
|
+
320
|
|
2185
|
+
321</pre>
|
|
2048
2186
|
</td>
|
|
2049
2187
|
<td>
|
|
2050
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
2188
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 319</span>
|
|
2051
2189
|
|
|
2052
2190
|
<span class='kw'>def</span> <span class='id identifier rubyid_respond_to_missing?'>respond_to_missing?</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid__'>_</span><span class='rparen'>)</span>
|
|
2053
2191
|
<span class='kw'>true</span>
|
|
@@ -2105,18 +2243,18 @@ rendering at all.</p>
|
|
|
2105
2243
|
<pre class="lines">
|
|
2106
2244
|
|
|
2107
2245
|
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2246
|
+
243
|
|
2247
|
+
244
|
|
2248
|
+
245
|
|
2249
|
+
246
|
|
2250
|
+
247
|
|
2251
|
+
248
|
|
2252
|
+
249
|
|
2253
|
+
250
|
|
2254
|
+
251</pre>
|
|
2117
2255
|
</td>
|
|
2118
2256
|
<td>
|
|
2119
|
-
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line
|
|
2257
|
+
<pre class="code"><span class="info file"># File 'lib/rudder/dsl/pipeline.rb', line 243</span>
|
|
2120
2258
|
|
|
2121
2259
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
|
2122
2260
|
<span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
@@ -2137,7 +2275,7 @@ rendering at all.</p>
|
|
|
2137
2275
|
</div>
|
|
2138
2276
|
|
|
2139
2277
|
<div id="footer">
|
|
2140
|
-
Generated on
|
|
2278
|
+
Generated on Wed Nov 6 21:05:09 2019 by
|
|
2141
2279
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2142
2280
|
0.9.20 (ruby-2.5.1).
|
|
2143
2281
|
</div>
|
|
@@ -574,7 +574,7 @@ without knowing it's underlying concourse name.</p>
|
|
|
574
574
|
</div>
|
|
575
575
|
|
|
576
576
|
<div id="footer">
|
|
577
|
-
Generated on
|
|
577
|
+
Generated on Wed Nov 6 21:05:09 2019 by
|
|
578
578
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
579
579
|
0.9.20 (ruby-2.5.1).
|
|
580
580
|
</div>
|
|
@@ -213,7 +213,7 @@ community defined.</p>
|
|
|
213
213
|
</div>
|
|
214
214
|
|
|
215
215
|
<div id="footer">
|
|
216
|
-
Generated on
|
|
216
|
+
Generated on Wed Nov 6 21:05:09 2019 by
|
|
217
217
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
218
218
|
0.9.20 (ruby-2.5.1).
|
|
219
219
|
</div>
|
data/docs/Rudder/DSL/Util.html
CHANGED
|
@@ -360,7 +360,7 @@ Hash (if able), or returns the object itself.</p>
|
|
|
360
360
|
</div>
|
|
361
361
|
|
|
362
362
|
<div id="footer">
|
|
363
|
-
Generated on
|
|
363
|
+
Generated on Wed Nov 6 21:05:08 2019 by
|
|
364
364
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
365
365
|
0.9.20 (ruby-2.5.1).
|
|
366
366
|
</div>
|