humidifier-reservoir 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -3
- data/README.md +94 -0
- data/docs/Humidifier.html +2 -2
- data/docs/Humidifier/Reservoir.html +3 -3
- data/docs/Humidifier/Reservoir/BaseMapper.html +61 -23
- data/docs/Humidifier/Reservoir/CLI.html +89 -23
- data/docs/Humidifier/Reservoir/Config.html +6 -6
- data/docs/Humidifier/Reservoir/Error.html +2 -2
- data/docs/Humidifier/Reservoir/Mapping.html +20 -12
- data/docs/Humidifier/Reservoir/Stack.html +272 -60
- data/docs/Humidifier/Reservoir/Stack/Export.html +322 -0
- data/docs/_index.html +9 -2
- data/docs/class_list.html +1 -1
- data/docs/file.LICENSE.html +2 -2
- data/docs/file.README.html +121 -2
- data/docs/index.html +121 -2
- data/docs/method_list.html +52 -4
- data/docs/top-level-namespace.html +2 -2
- data/humidifier-reservoir.gemspec +1 -3
- data/lib/humidifier/reservoir/base_mapper.rb +26 -3
- data/lib/humidifier/reservoir/cli.rb +21 -4
- data/lib/humidifier/reservoir/config.rb +2 -2
- data/lib/humidifier/reservoir/mapping.rb +23 -3
- data/lib/humidifier/reservoir/stack.rb +49 -8
- data/lib/humidifier/reservoir/version.rb +1 -1
- metadata +5 -4
@@ -264,7 +264,7 @@
|
|
264
264
|
<li class="public ">
|
265
265
|
<span class="summary_signature">
|
266
266
|
|
267
|
-
<a href="#map-instance_method" title="#map (instance method)">#<strong>map</strong>(type, opts = {}) ⇒ Object </a>
|
267
|
+
<a href="#map-instance_method" title="#map (instance method)">#<strong>map</strong>(type, opts = {}, &block) ⇒ Object </a>
|
268
268
|
|
269
269
|
|
270
270
|
|
@@ -572,7 +572,7 @@
|
|
572
572
|
<div class="method_details ">
|
573
573
|
<h3 class="signature " id="map-instance_method">
|
574
574
|
|
575
|
-
#<strong>map</strong>(type, opts = {}) ⇒ <tt>Object</tt>
|
575
|
+
#<strong>map</strong>(type, opts = {}, &block) ⇒ <tt>Object</tt>
|
576
576
|
|
577
577
|
|
578
578
|
|
@@ -591,8 +591,8 @@
|
|
591
591
|
<td>
|
592
592
|
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/config.rb', line 17</span>
|
593
593
|
|
594
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
595
|
-
<span class='id identifier rubyid_mappings'>mappings</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Mapping.html" title="Humidifier::Reservoir::Mapping (class)">Mapping</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Mapping.html#initialize-instance_method" title="Humidifier::Reservoir::Mapping#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
594
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
595
|
+
<span class='id identifier rubyid_mappings'>mappings</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Mapping.html" title="Humidifier::Reservoir::Mapping (class)">Mapping</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Mapping.html#initialize-instance_method" title="Humidifier::Reservoir::Mapping#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
596
596
|
<span class='kw'>end</span></pre>
|
597
597
|
</td>
|
598
598
|
</tr>
|
@@ -668,9 +668,9 @@
|
|
668
668
|
</div>
|
669
669
|
|
670
670
|
<div id="footer">
|
671
|
-
Generated on
|
671
|
+
Generated on Wed Nov 8 13:26:15 2017 by
|
672
672
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
673
|
-
0.9.9 (ruby-2.4.
|
673
|
+
0.9.9 (ruby-2.4.2).
|
674
674
|
</div>
|
675
675
|
|
676
676
|
</div>
|
@@ -126,9 +126,9 @@ CLI.</p>
|
|
126
126
|
</div>
|
127
127
|
|
128
128
|
<div id="footer">
|
129
|
-
Generated on
|
129
|
+
Generated on Wed Nov 8 13:26:15 2017 by
|
130
130
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
131
|
-
0.9.9 (ruby-2.4.
|
131
|
+
0.9.9 (ruby-2.4.2).
|
132
132
|
</div>
|
133
133
|
|
134
134
|
</div>
|
@@ -193,7 +193,7 @@ default.</p>
|
|
193
193
|
<li class="public ">
|
194
194
|
<span class="summary_signature">
|
195
195
|
|
196
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ Mapping </a>
|
196
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}, &block) ⇒ Mapping </a>
|
197
197
|
|
198
198
|
|
199
199
|
|
@@ -247,7 +247,7 @@ default.</p>
|
|
247
247
|
<div class="method_details first">
|
248
248
|
<h3 class="signature first" id="initialize-instance_method">
|
249
249
|
|
250
|
-
#<strong>initialize</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="" title="Humidifier::Reservoir::Mapping (class)">Mapping</a></span></tt>
|
250
|
+
#<strong>initialize</strong>(opts = {}, &block) ⇒ <tt><span class='object_link'><a href="" title="Humidifier::Reservoir::Mapping (class)">Mapping</a></span></tt>
|
251
251
|
|
252
252
|
|
253
253
|
|
@@ -288,16 +288,24 @@ default.</p>
|
|
288
288
|
11
|
289
289
|
12
|
290
290
|
13
|
291
|
-
14
|
291
|
+
14
|
292
|
+
15
|
293
|
+
16
|
294
|
+
17
|
295
|
+
18</pre>
|
292
296
|
</td>
|
293
297
|
<td>
|
294
298
|
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/mapping.rb', line 9</span>
|
295
299
|
|
296
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
297
|
-
<span class='ivar'>@clazz</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Humidifier.html" title="Humidifier (module)">Humidifier</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:to</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
300
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
301
|
+
<span class='ivar'>@clazz</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Humidifier.html" title="Humidifier (module)">Humidifier</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_normalized'>normalized</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:to</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
298
302
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Error.html" title="Humidifier::Reservoir::Error (class)">Error</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Invalid resource: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:to</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@clazz</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
299
303
|
|
300
|
-
<span class='
|
304
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:using</span><span class='rbracket'>]</span> <span class='op'>&&</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
305
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Error.html" title="Humidifier::Reservoir::Error (class)">Error</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Cannot specify :using and provide an anonymous mapper</span><span class='tstring_end'>'</span></span>
|
306
|
+
<span class='kw'>end</span>
|
307
|
+
|
308
|
+
<span class='ivar'>@mapper</span> <span class='op'>=</span> <span class='id identifier rubyid_mapper_from'>mapper_from</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
301
309
|
<span class='kw'>end</span></pre>
|
302
310
|
</td>
|
303
311
|
</tr>
|
@@ -417,12 +425,12 @@ default.</p>
|
|
417
425
|
<pre class="lines">
|
418
426
|
|
419
427
|
|
420
|
-
|
421
|
-
|
422
|
-
|
428
|
+
20
|
429
|
+
21
|
430
|
+
22</pre>
|
423
431
|
</td>
|
424
432
|
<td>
|
425
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/mapping.rb', line
|
433
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/mapping.rb', line 20</span>
|
426
434
|
|
427
435
|
<span class='kw'>def</span> <span class='id identifier rubyid_resource_for'>resource_for</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_attributes'>attributes</span><span class='rparen'>)</span>
|
428
436
|
<span class='id identifier rubyid_mapper'>mapper</span><span class='period'>.</span><span class='id identifier rubyid_resource_for'>resource_for</span><span class='lparen'>(</span><span class='id identifier rubyid_clazz'>clazz</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_attributes'>attributes</span><span class='rparen'>)</span>
|
@@ -437,9 +445,9 @@ default.</p>
|
|
437
445
|
</div>
|
438
446
|
|
439
447
|
<div id="footer">
|
440
|
-
Generated on
|
448
|
+
Generated on Wed Nov 8 13:26:16 2017 by
|
441
449
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
442
|
-
0.9.9 (ruby-2.4.
|
450
|
+
0.9.9 (ruby-2.4.2).
|
443
451
|
</div>
|
444
452
|
|
445
453
|
</div>
|
@@ -112,13 +112,52 @@ them.</p>
|
|
112
112
|
<div class="tags">
|
113
113
|
|
114
114
|
|
115
|
-
</div>
|
115
|
+
</div><h2>Defined Under Namespace</h2>
|
116
|
+
<p class="children">
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Stack/Export.html" title="Humidifier::Reservoir::Stack::Export (class)">Export</a></span>
|
122
|
+
|
123
|
+
|
124
|
+
</p>
|
125
|
+
|
116
126
|
|
117
127
|
|
118
128
|
|
119
129
|
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
120
130
|
<ul class="summary">
|
121
131
|
|
132
|
+
<li class="public ">
|
133
|
+
<span class="summary_signature">
|
134
|
+
|
135
|
+
<a href="#exports-instance_method" title="#exports (instance method)">#<strong>exports</strong> ⇒ Object </a>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
</span>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<span class="note title readonly">readonly</span>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<span class="summary_desc"><div class='inline'>
|
155
|
+
<p>Returns the value of attribute exports.</p>
|
156
|
+
</div></span>
|
157
|
+
|
158
|
+
</li>
|
159
|
+
|
160
|
+
|
122
161
|
<li class="public ">
|
123
162
|
<span class="summary_signature">
|
124
163
|
|
@@ -174,6 +213,35 @@ them.</p>
|
|
174
213
|
<p>Returns the value of attribute pattern.</p>
|
175
214
|
</div></span>
|
176
215
|
|
216
|
+
</li>
|
217
|
+
|
218
|
+
|
219
|
+
<li class="public ">
|
220
|
+
<span class="summary_signature">
|
221
|
+
|
222
|
+
<a href="#prefix-instance_method" title="#prefix (instance method)">#<strong>prefix</strong> ⇒ Object </a>
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</span>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
<span class="note title readonly">readonly</span>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<span class="summary_desc"><div class='inline'>
|
242
|
+
<p>Returns the value of attribute prefix.</p>
|
243
|
+
</div></span>
|
244
|
+
|
177
245
|
</li>
|
178
246
|
|
179
247
|
|
@@ -193,6 +261,28 @@ them.</p>
|
|
193
261
|
<li class="public ">
|
194
262
|
<span class="summary_signature">
|
195
263
|
|
264
|
+
<a href="#create_change_set-instance_method" title="#create_change_set (instance method)">#<strong>create_change_set</strong> ⇒ Object </a>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
</span>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
279
|
+
|
280
|
+
</li>
|
281
|
+
|
282
|
+
|
283
|
+
<li class="public ">
|
284
|
+
<span class="summary_signature">
|
285
|
+
|
196
286
|
<a href="#deploy-instance_method" title="#deploy (instance method)">#<strong>deploy</strong>(wait = false) ⇒ Object </a>
|
197
287
|
|
198
288
|
|
@@ -215,7 +305,7 @@ them.</p>
|
|
215
305
|
<li class="public ">
|
216
306
|
<span class="summary_signature">
|
217
307
|
|
218
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, pattern
|
308
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, pattern: nil, prefix: nil) ⇒ Stack </a>
|
219
309
|
|
220
310
|
|
221
311
|
|
@@ -335,7 +425,7 @@ them.</p>
|
|
335
425
|
<div class="method_details first">
|
336
426
|
<h3 class="signature first" id="initialize-instance_method">
|
337
427
|
|
338
|
-
#<strong>initialize</strong>(name, pattern
|
428
|
+
#<strong>initialize</strong>(name, pattern: nil, prefix: nil) ⇒ <tt><span class='object_link'><a href="" title="Humidifier::Reservoir::Stack (class)">Stack</a></span></tt>
|
339
429
|
|
340
430
|
|
341
431
|
|
@@ -358,17 +448,21 @@ them.</p>
|
|
358
448
|
<pre class="lines">
|
359
449
|
|
360
450
|
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
451
|
+
22
|
452
|
+
23
|
453
|
+
24
|
454
|
+
25
|
455
|
+
26
|
456
|
+
27</pre>
|
365
457
|
</td>
|
366
458
|
<td>
|
367
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
459
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 22</span>
|
368
460
|
|
369
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='
|
461
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>pattern:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>prefix:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
370
462
|
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
371
463
|
<span class='ivar'>@pattern</span> <span class='op'>=</span> <span class='id identifier rubyid_pattern'>pattern</span>
|
464
|
+
<span class='ivar'>@prefix</span> <span class='op'>=</span> <span class='id identifier rubyid_prefix'>prefix</span>
|
465
|
+
<span class='ivar'>@exports</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
372
466
|
<span class='kw'>end</span></pre>
|
373
467
|
</td>
|
374
468
|
</tr>
|
@@ -383,7 +477,50 @@ them.</p>
|
|
383
477
|
|
384
478
|
<span id=""></span>
|
385
479
|
<div class="method_details first">
|
386
|
-
<h3 class="signature first" id="
|
480
|
+
<h3 class="signature first" id="exports-instance_method">
|
481
|
+
|
482
|
+
#<strong>exports</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
</h3><div class="docstring">
|
489
|
+
<div class="discussion">
|
490
|
+
|
491
|
+
<p>Returns the value of attribute exports</p>
|
492
|
+
|
493
|
+
|
494
|
+
</div>
|
495
|
+
</div>
|
496
|
+
<div class="tags">
|
497
|
+
|
498
|
+
|
499
|
+
</div><table class="source_code">
|
500
|
+
<tr>
|
501
|
+
<td>
|
502
|
+
<pre class="lines">
|
503
|
+
|
504
|
+
|
505
|
+
20
|
506
|
+
21
|
507
|
+
22</pre>
|
508
|
+
</td>
|
509
|
+
<td>
|
510
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 20</span>
|
511
|
+
|
512
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_exports'>exports</span>
|
513
|
+
<span class='ivar'>@exports</span>
|
514
|
+
<span class='kw'>end</span></pre>
|
515
|
+
</td>
|
516
|
+
</tr>
|
517
|
+
</table>
|
518
|
+
</div>
|
519
|
+
|
520
|
+
|
521
|
+
<span id=""></span>
|
522
|
+
<div class="method_details ">
|
523
|
+
<h3 class="signature " id="name-instance_method">
|
387
524
|
|
388
525
|
#<strong>name</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
389
526
|
|
@@ -408,12 +545,12 @@ them.</p>
|
|
408
545
|
<pre class="lines">
|
409
546
|
|
410
547
|
|
411
|
-
|
412
|
-
|
413
|
-
|
548
|
+
20
|
549
|
+
21
|
550
|
+
22</pre>
|
414
551
|
</td>
|
415
552
|
<td>
|
416
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
553
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 20</span>
|
417
554
|
|
418
555
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
419
556
|
<span class='ivar'>@name</span>
|
@@ -451,12 +588,12 @@ them.</p>
|
|
451
588
|
<pre class="lines">
|
452
589
|
|
453
590
|
|
454
|
-
|
455
|
-
|
456
|
-
|
591
|
+
20
|
592
|
+
21
|
593
|
+
22</pre>
|
457
594
|
</td>
|
458
595
|
<td>
|
459
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
596
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 20</span>
|
460
597
|
|
461
598
|
<span class='kw'>def</span> <span class='id identifier rubyid_pattern'>pattern</span>
|
462
599
|
<span class='ivar'>@pattern</span>
|
@@ -466,6 +603,49 @@ them.</p>
|
|
466
603
|
</table>
|
467
604
|
</div>
|
468
605
|
|
606
|
+
|
607
|
+
<span id=""></span>
|
608
|
+
<div class="method_details ">
|
609
|
+
<h3 class="signature " id="prefix-instance_method">
|
610
|
+
|
611
|
+
#<strong>prefix</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
</h3><div class="docstring">
|
618
|
+
<div class="discussion">
|
619
|
+
|
620
|
+
<p>Returns the value of attribute prefix</p>
|
621
|
+
|
622
|
+
|
623
|
+
</div>
|
624
|
+
</div>
|
625
|
+
<div class="tags">
|
626
|
+
|
627
|
+
|
628
|
+
</div><table class="source_code">
|
629
|
+
<tr>
|
630
|
+
<td>
|
631
|
+
<pre class="lines">
|
632
|
+
|
633
|
+
|
634
|
+
20
|
635
|
+
21
|
636
|
+
22</pre>
|
637
|
+
</td>
|
638
|
+
<td>
|
639
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 20</span>
|
640
|
+
|
641
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_prefix'>prefix</span>
|
642
|
+
<span class='ivar'>@prefix</span>
|
643
|
+
<span class='kw'>end</span></pre>
|
644
|
+
</td>
|
645
|
+
</tr>
|
646
|
+
</table>
|
647
|
+
</div>
|
648
|
+
|
469
649
|
</div>
|
470
650
|
|
471
651
|
|
@@ -474,7 +654,45 @@ them.</p>
|
|
474
654
|
|
475
655
|
|
476
656
|
<div class="method_details first">
|
477
|
-
<h3 class="signature first" id="
|
657
|
+
<h3 class="signature first" id="create_change_set-instance_method">
|
658
|
+
|
659
|
+
#<strong>create_change_set</strong> ⇒ <tt>Object</tt>
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
</h3><table class="source_code">
|
666
|
+
<tr>
|
667
|
+
<td>
|
668
|
+
<pre class="lines">
|
669
|
+
|
670
|
+
|
671
|
+
29
|
672
|
+
30
|
673
|
+
31
|
674
|
+
32
|
675
|
+
33
|
676
|
+
34
|
677
|
+
35</pre>
|
678
|
+
</td>
|
679
|
+
<td>
|
680
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 29</span>
|
681
|
+
|
682
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create_change_set'>create_change_set</span>
|
683
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_ensure_resources'>ensure_resources</span>
|
684
|
+
<span class='id identifier rubyid_valid?'>valid?</span>
|
685
|
+
|
686
|
+
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>capabilities:</span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>CAPABILITY_IAM</span><span class='words_sep'> </span><span class='tstring_content'>CAPABILITY_NAMED_IAM</span><span class='words_sep'>]</span> <span class='rbrace'>}</span>
|
687
|
+
<span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_create_change_set'>create_change_set</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
688
|
+
<span class='kw'>end</span></pre>
|
689
|
+
</td>
|
690
|
+
</tr>
|
691
|
+
</table>
|
692
|
+
</div>
|
693
|
+
|
694
|
+
<div class="method_details ">
|
695
|
+
<h3 class="signature " id="deploy-instance_method">
|
478
696
|
|
479
697
|
#<strong>deploy</strong>(wait = false) ⇒ <tt>Object</tt>
|
480
698
|
|
@@ -488,25 +706,19 @@ them.</p>
|
|
488
706
|
<pre class="lines">
|
489
707
|
|
490
708
|
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
21
|
499
|
-
22
|
500
|
-
23</pre>
|
709
|
+
37
|
710
|
+
38
|
711
|
+
39
|
712
|
+
40
|
713
|
+
41
|
714
|
+
42
|
715
|
+
43</pre>
|
501
716
|
</td>
|
502
717
|
<td>
|
503
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
718
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 37</span>
|
504
719
|
|
505
720
|
<span class='kw'>def</span> <span class='id identifier rubyid_deploy'>deploy</span><span class='lparen'>(</span><span class='id identifier rubyid_wait'>wait</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
506
|
-
<span class='kw'>
|
507
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Refusing to deploy stack </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> with no resources</span><span class='tstring_end'>"</span></span>
|
508
|
-
<span class='kw'>return</span>
|
509
|
-
<span class='kw'>end</span>
|
721
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_ensure_resources'>ensure_resources</span>
|
510
722
|
<span class='id identifier rubyid_valid?'>valid?</span>
|
511
723
|
|
512
724
|
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>capabilities:</span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>CAPABILITY_IAM</span><span class='words_sep'> </span><span class='tstring_content'>CAPABILITY_NAMED_IAM</span><span class='words_sep'>]</span> <span class='rbrace'>}</span>
|
@@ -532,14 +744,14 @@ them.</p>
|
|
532
744
|
<pre class="lines">
|
533
745
|
|
534
746
|
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
747
|
+
45
|
748
|
+
46
|
749
|
+
47
|
750
|
+
48
|
751
|
+
49</pre>
|
540
752
|
</td>
|
541
753
|
<td>
|
542
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
754
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 45</span>
|
543
755
|
|
544
756
|
<span class='kw'>def</span> <span class='id identifier rubyid_resources'>resources</span>
|
545
757
|
<span class='const'><span class='object_link'><a href="../Reservoir.html" title="Humidifier::Reservoir (module)">Reservoir</a></span></span><span class='period'>.</span><span class='id identifier rubyid_files_for'><span class='object_link'><a href="../Reservoir.html#files_for-class_method" title="Humidifier::Reservoir.files_for (method)">files_for</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each_with_object'>each_with_object</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='id identifier rubyid_resources'>resources</span><span class='op'>|</span>
|
@@ -566,15 +778,15 @@ them.</p>
|
|
566
778
|
<pre class="lines">
|
567
779
|
|
568
780
|
|
569
|
-
|
570
|
-
|
571
|
-
|
781
|
+
51
|
782
|
+
52
|
783
|
+
53</pre>
|
572
784
|
</td>
|
573
785
|
<td>
|
574
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
786
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 51</span>
|
575
787
|
|
576
788
|
<span class='kw'>def</span> <span class='id identifier rubyid_stack_name'>stack_name</span>
|
577
|
-
<span class='ivar'>@stack_name</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../Reservoir.html" title="Humidifier::Reservoir (module)">Reservoir</a></span></span><span class='period'>.</span><span class='id identifier rubyid_stack_prefix'><span class='object_link'><a href="../Reservoir.html#stack_prefix-class_method" title="Humidifier::Reservoir.stack_prefix (method)">stack_prefix</a></span></span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
789
|
+
<span class='ivar'>@stack_name</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_prefix'>prefix</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Reservoir.html" title="Humidifier::Reservoir (module)">Reservoir</a></span></span><span class='period'>.</span><span class='id identifier rubyid_stack_prefix'><span class='object_link'><a href="../Reservoir.html#stack_prefix-class_method" title="Humidifier::Reservoir.stack_prefix (method)">stack_prefix</a></span></span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
578
790
|
<span class='kw'>end</span></pre>
|
579
791
|
</td>
|
580
792
|
</tr>
|
@@ -596,12 +808,12 @@ them.</p>
|
|
596
808
|
<pre class="lines">
|
597
809
|
|
598
810
|
|
599
|
-
|
600
|
-
|
601
|
-
|
811
|
+
55
|
812
|
+
56
|
813
|
+
57</pre>
|
602
814
|
</td>
|
603
815
|
<td>
|
604
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
816
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 55</span>
|
605
817
|
|
606
818
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_cf'>to_cf</span>
|
607
819
|
<span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_to_cf'>to_cf</span>
|
@@ -648,17 +860,17 @@ them.</p>
|
|
648
860
|
<pre class="lines">
|
649
861
|
|
650
862
|
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
863
|
+
59
|
864
|
+
60
|
865
|
+
61
|
866
|
+
62
|
867
|
+
63
|
868
|
+
64
|
869
|
+
65
|
870
|
+
66</pre>
|
659
871
|
</td>
|
660
872
|
<td>
|
661
|
-
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line
|
873
|
+
<pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 59</span>
|
662
874
|
|
663
875
|
<span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span>
|
664
876
|
<span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_valid?'>valid?</span>
|
@@ -678,9 +890,9 @@ this command. Ensure the profile has cloudformation:ValidateTemplate.
|
|
678
890
|
</div>
|
679
891
|
|
680
892
|
<div id="footer">
|
681
|
-
Generated on
|
893
|
+
Generated on Wed Nov 8 13:26:15 2017 by
|
682
894
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
683
|
-
0.9.9 (ruby-2.4.
|
895
|
+
0.9.9 (ruby-2.4.2).
|
684
896
|
</div>
|
685
897
|
|
686
898
|
</div>
|