humidifier-reservoir 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/docs/Humidifier.html +2 -2
- data/docs/Humidifier/Reservoir.html +3 -3
- data/docs/Humidifier/Reservoir/BaseMapper.html +2 -2
- data/docs/Humidifier/Reservoir/CLI.html +2 -2
- data/docs/Humidifier/Reservoir/Config.html +2 -2
- data/docs/Humidifier/Reservoir/Error.html +2 -2
- data/docs/Humidifier/Reservoir/Mapping.html +2 -2
- data/docs/Humidifier/Reservoir/ParameterList.html +2 -2
- data/docs/Humidifier/Reservoir/Stack.html +4 -4
- data/docs/Humidifier/Reservoir/Stack/Export.html +2 -2
- data/docs/_index.html +2 -2
- data/docs/file.LICENSE.html +2 -2
- data/docs/file.README.html +20 -13
- data/docs/index.html +20 -13
- data/docs/top-level-namespace.html +2 -2
- data/humidifier-reservoir.gemspec +3 -3
- data/lib/humidifier/reservoir/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9dd5982a5b25ae230652a20a57ab9f64a0bda455272da0bd5ec3f85deb461d10
|
4
|
+
data.tar.gz: e6a0bc7168b2f87d8a0f4db82338a6ef7dfbd649599f6e5a4bceccb3cbac8975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa02044871df74db6bb369e08e8203ad4c96bde182e2e594367585fb5c0ee8d6e940ca33fbffe706ec3cfef615bd1f1ccd62610c79cb67060aeeef15fe35554
|
7
|
+
data.tar.gz: 4b34a92e0d9a956721806ee343734d355065f50d8579079499ddaa37afbefacda22cf24b64bb27c857947b0da8c308fdf6a7c5e28a24eeb90cd1dcaf1fe5cc9d
|
data/docs/Humidifier.html
CHANGED
@@ -107,9 +107,9 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on
|
110
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
|
-
0.9.12 (ruby-2.
|
112
|
+
0.9.12 (ruby-2.5.0).
|
113
113
|
</div>
|
114
114
|
|
115
115
|
</div>
|
@@ -126,7 +126,7 @@
|
|
126
126
|
|
127
127
|
</div>
|
128
128
|
</dt>
|
129
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.
|
129
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.4.0</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
130
130
|
|
131
131
|
</dl>
|
132
132
|
|
@@ -492,9 +492,9 @@
|
|
492
492
|
</div>
|
493
493
|
|
494
494
|
<div id="footer">
|
495
|
-
Generated on
|
495
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
496
496
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
497
|
-
0.9.12 (ruby-2.
|
497
|
+
0.9.12 (ruby-2.5.0).
|
498
498
|
</div>
|
499
499
|
|
500
500
|
</div>
|
@@ -487,9 +487,9 @@ logical name for the resource, and the user-specified attributes.</p>
|
|
487
487
|
</div>
|
488
488
|
|
489
489
|
<div id="footer">
|
490
|
-
Generated on
|
490
|
+
Generated on Mon Mar 12 11:14:16 2018 by
|
491
491
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
492
|
-
0.9.12 (ruby-2.
|
492
|
+
0.9.12 (ruby-2.5.0).
|
493
493
|
</div>
|
494
494
|
|
495
495
|
</div>
|
@@ -463,9 +463,9 @@ about.</p>
|
|
463
463
|
</div>
|
464
464
|
|
465
465
|
<div id="footer">
|
466
|
-
Generated on
|
466
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
467
467
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
468
|
-
0.9.12 (ruby-2.
|
468
|
+
0.9.12 (ruby-2.5.0).
|
469
469
|
</div>
|
470
470
|
|
471
471
|
</div>
|
@@ -668,9 +668,9 @@
|
|
668
668
|
</div>
|
669
669
|
|
670
670
|
<div id="footer">
|
671
|
-
Generated on
|
671
|
+
Generated on Mon Mar 12 11:14:16 2018 by
|
672
672
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
673
|
-
0.9.12 (ruby-2.
|
673
|
+
0.9.12 (ruby-2.5.0).
|
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 Mon Mar 12 11:14:15 2018 by
|
130
130
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
131
|
-
0.9.12 (ruby-2.
|
131
|
+
0.9.12 (ruby-2.5.0).
|
132
132
|
</div>
|
133
133
|
|
134
134
|
</div>
|
@@ -445,9 +445,9 @@ default.</p>
|
|
445
445
|
</div>
|
446
446
|
|
447
447
|
<div id="footer">
|
448
|
-
Generated on
|
448
|
+
Generated on Mon Mar 12 11:14:16 2018 by
|
449
449
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
450
|
-
0.9.12 (ruby-2.
|
450
|
+
0.9.12 (ruby-2.5.0).
|
451
451
|
</div>
|
452
452
|
|
453
453
|
</div>
|
@@ -187,9 +187,9 @@
|
|
187
187
|
</div>
|
188
188
|
|
189
189
|
<div id="footer">
|
190
|
-
Generated on
|
190
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
191
191
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
192
|
-
0.9.12 (ruby-2.
|
192
|
+
0.9.12 (ruby-2.5.0).
|
193
193
|
</div>
|
194
194
|
|
195
195
|
</div>
|
@@ -725,7 +725,7 @@ them.</p>
|
|
725
725
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_change_set'>create_change_set</span>
|
726
726
|
<span class='kw'>return</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_ensure_resources'>ensure_resources</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>change</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_valid?'>valid?</span>
|
727
727
|
|
728
|
-
<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='
|
728
|
+
<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='tstring_end'>]</span></span> <span class='rbrace'>}</span>
|
729
729
|
<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>
|
730
730
|
<span class='kw'>end</span></pre>
|
731
731
|
</td>
|
@@ -765,7 +765,7 @@ them.</p>
|
|
765
765
|
<span class='kw'>return</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_ensure_resources'>ensure_resources</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>deploy</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_valid?'>valid?</span>
|
766
766
|
|
767
767
|
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
768
|
-
<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='
|
768
|
+
<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='tstring_end'>]</span></span><span class='comma'>,</span>
|
769
769
|
<span class='label'>parameters:</span> <span class='id identifier rubyid_parameter_values'>parameter_values</span>
|
770
770
|
<span class='rbrace'>}</span>
|
771
771
|
<span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_public_send'>public_send</span><span class='lparen'>(</span><span class='id identifier rubyid_wait'>wait</span> <span class='op'>?</span> <span class='symbol'>:deploy_and_wait</span> <span class='op'>:</span> <span class='symbol'>:deploy</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
@@ -1026,9 +1026,9 @@ them.</p>
|
|
1026
1026
|
</div>
|
1027
1027
|
|
1028
1028
|
<div id="footer">
|
1029
|
-
Generated on
|
1029
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
1030
1030
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1031
|
-
0.9.12 (ruby-2.
|
1031
|
+
0.9.12 (ruby-2.5.0).
|
1032
1032
|
</div>
|
1033
1033
|
|
1034
1034
|
</div>
|
@@ -389,9 +389,9 @@ references.</p>
|
|
389
389
|
</div>
|
390
390
|
|
391
391
|
<div id="footer">
|
392
|
-
Generated on
|
392
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
393
393
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
394
|
-
0.9.12 (ruby-2.
|
394
|
+
0.9.12 (ruby-2.5.0).
|
395
395
|
</div>
|
396
396
|
|
397
397
|
</div>
|
data/docs/_index.html
CHANGED
@@ -222,9 +222,9 @@
|
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div id="footer">
|
225
|
-
Generated on
|
225
|
+
Generated on Mon Mar 12 11:14:14 2018 by
|
226
226
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
|
-
0.9.12 (ruby-2.
|
227
|
+
0.9.12 (ruby-2.5.0).
|
228
228
|
</div>
|
229
229
|
|
230
230
|
</div>
|
data/docs/file.LICENSE.html
CHANGED
@@ -83,9 +83,9 @@ DEALINGS IN THE SOFTWARE.</p>
|
|
83
83
|
</div></div>
|
84
84
|
|
85
85
|
<div id="footer">
|
86
|
-
Generated on
|
86
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
87
87
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
88
|
-
0.9.12 (ruby-2.
|
88
|
+
0.9.12 (ruby-2.5.0).
|
89
89
|
</div>
|
90
90
|
|
91
91
|
</div>
|
data/docs/file.README.html
CHANGED
@@ -83,11 +83,13 @@ advantage of the flexibility of <code>humidifier</code>.</p>
|
|
83
83
|
|
84
84
|
<p>And then execute:</p>
|
85
85
|
|
86
|
-
<pre class="code ruby"><code class="ruby">$ bundle
|
86
|
+
<pre class="code ruby"><code class="ruby">$ bundle
|
87
|
+
</code></pre>
|
87
88
|
|
88
89
|
<p>Or install it yourself as:</p>
|
89
90
|
|
90
|
-
<pre class="code ruby"><code class="ruby">$ gem install humidifier-reservoir
|
91
|
+
<pre class="code ruby"><code class="ruby">$ gem install humidifier-reservoir
|
92
|
+
</code></pre>
|
91
93
|
|
92
94
|
<h2 id="label-Usage">Usage</h2>
|
93
95
|
|
@@ -136,7 +138,8 @@ AdminUser:
|
|
136
138
|
user_name: AdminUser
|
137
139
|
groups:
|
138
140
|
- Management
|
139
|
-
- Administration
|
141
|
+
- Administration
|
142
|
+
</code></pre>
|
140
143
|
|
141
144
|
<p>The top-level keys are the logical resource names that will be displayed in
|
142
145
|
the CloudFormation screen. They point to a map of key/value pairs that will
|
@@ -164,8 +167,8 @@ example for mapping a user:</p>
|
|
164
167
|
|
165
168
|
<pre class="code ruby"><code class="ruby"><span class='kw'>class</span> <span class='const'>UserMapper</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='op'>::</span><span class='const'><span class='object_link'><a href="Humidifier/Reservoir.html" title="Humidifier::Reservoir (module)">Reservoir</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Humidifier/Reservoir/BaseMapper.html" title="Humidifier::Reservoir::BaseMapper (class)">BaseMapper</a></span></span>
|
166
169
|
<span class='const'>GROUPS</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
167
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='
|
168
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='
|
170
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='tstring_end'>]</span></span><span class='comma'>,</span>
|
171
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='tstring_end'>]</span></span>
|
169
172
|
<span class='rbrace'>}</span>
|
170
173
|
|
171
174
|
<span class='id identifier rubyid_defaults'>defaults</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_logical_name'>logical_name</span><span class='op'>|</span>
|
@@ -197,7 +200,8 @@ even though it is not native to CloudFormation. With this
|
|
197
200
|
group: eng
|
198
201
|
|
199
202
|
AdminUser:
|
200
|
-
group: admin
|
203
|
+
group: admin
|
204
|
+
</code></pre>
|
201
205
|
|
202
206
|
<h3 id="label-Using+the+CLI">Using the CLI</h3>
|
203
207
|
|
@@ -266,7 +270,8 @@ configuration).</p>
|
|
266
270
|
<p>You can pass values to the CLI deploy command after the stack name on the
|
267
271
|
command line as in:</p>
|
268
272
|
|
269
|
-
<pre class="code ruby"><code class="ruby">bin/reservoir deploy foobar Param1=Foo Param2=Bar
|
273
|
+
<pre class="code ruby"><code class="ruby">bin/reservoir deploy foobar Param1=Foo Param2=Bar
|
274
|
+
</code></pre>
|
270
275
|
|
271
276
|
<p>Those parameters will get passed in as values when the stack is deployed.</p>
|
272
277
|
|
@@ -305,8 +310,8 @@ from above is below:</p>
|
|
305
310
|
<pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="Humidifier.html" title="Humidifier (module)">Humidifier</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Humidifier/Reservoir.html" title="Humidifier::Reservoir (module)">Reservoir</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'><span class='object_link'><a href="Humidifier/Reservoir.html#configure-class_method" title="Humidifier::Reservoir.configure (method)">configure</a></span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
306
311
|
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='symbol'>:users</span><span class='comma'>,</span> <span class='label'>to:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>AWS::IAM::User</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span>
|
307
312
|
<span class='const'>GROUPS</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
308
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='
|
309
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='
|
313
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='tstring_end'>]</span></span><span class='comma'>,</span>
|
314
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='tstring_end'>]</span></span>
|
310
315
|
<span class='rbrace'>}</span>
|
311
316
|
|
312
317
|
<span class='id identifier rubyid_defaults'>defaults</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_logical_name'>logical_name</span><span class='op'>|</span>
|
@@ -347,7 +352,8 @@ ProductionPrivateSubnet2c:
|
|
347
352
|
vpc: ProductionVPC
|
348
353
|
cidr_block: 10.0.128.0/19
|
349
354
|
availability_zone: us-west-2c
|
350
|
-
export: true
|
355
|
+
export: true
|
356
|
+
</code></pre>
|
351
357
|
|
352
358
|
<p>And then in another stack, you could reference those values
|
353
359
|
(<code>stacks/rds/db_subnets_groups.yml</code>):</p>
|
@@ -357,7 +363,8 @@ ProductionPrivateSubnet2c:
|
|
357
363
|
subnets:
|
358
364
|
- ProductionPrivateSubnet2a
|
359
365
|
- ProductionPrivateSubnet2b
|
360
|
-
- ProductionPrivateSubnet2c
|
366
|
+
- ProductionPrivateSubnet2c
|
367
|
+
</code></pre>
|
361
368
|
|
362
369
|
<p>Within the configuration, you would specify to use the
|
363
370
|
<code>Fn::ImportValue</code> function like so:</p>
|
@@ -406,9 +413,9 @@ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
406
413
|
</div></div>
|
407
414
|
|
408
415
|
<div id="footer">
|
409
|
-
Generated on
|
416
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
410
417
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
411
|
-
0.9.12 (ruby-2.
|
418
|
+
0.9.12 (ruby-2.5.0).
|
412
419
|
</div>
|
413
420
|
|
414
421
|
</div>
|
data/docs/index.html
CHANGED
@@ -83,11 +83,13 @@ advantage of the flexibility of <code>humidifier</code>.</p>
|
|
83
83
|
|
84
84
|
<p>And then execute:</p>
|
85
85
|
|
86
|
-
<pre class="code ruby"><code class="ruby">$ bundle
|
86
|
+
<pre class="code ruby"><code class="ruby">$ bundle
|
87
|
+
</code></pre>
|
87
88
|
|
88
89
|
<p>Or install it yourself as:</p>
|
89
90
|
|
90
|
-
<pre class="code ruby"><code class="ruby">$ gem install humidifier-reservoir
|
91
|
+
<pre class="code ruby"><code class="ruby">$ gem install humidifier-reservoir
|
92
|
+
</code></pre>
|
91
93
|
|
92
94
|
<h2 id="label-Usage">Usage</h2>
|
93
95
|
|
@@ -136,7 +138,8 @@ AdminUser:
|
|
136
138
|
user_name: AdminUser
|
137
139
|
groups:
|
138
140
|
- Management
|
139
|
-
- Administration
|
141
|
+
- Administration
|
142
|
+
</code></pre>
|
140
143
|
|
141
144
|
<p>The top-level keys are the logical resource names that will be displayed in
|
142
145
|
the CloudFormation screen. They point to a map of key/value pairs that will
|
@@ -164,8 +167,8 @@ example for mapping a user:</p>
|
|
164
167
|
|
165
168
|
<pre class="code ruby"><code class="ruby"><span class='kw'>class</span> <span class='const'>UserMapper</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='op'>::</span><span class='const'><span class='object_link'><a href="Humidifier/Reservoir.html" title="Humidifier::Reservoir (module)">Reservoir</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Humidifier/Reservoir/BaseMapper.html" title="Humidifier::Reservoir::BaseMapper (class)">BaseMapper</a></span></span>
|
166
169
|
<span class='const'>GROUPS</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
167
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='
|
168
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='
|
170
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='tstring_end'>]</span></span><span class='comma'>,</span>
|
171
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='tstring_end'>]</span></span>
|
169
172
|
<span class='rbrace'>}</span>
|
170
173
|
|
171
174
|
<span class='id identifier rubyid_defaults'>defaults</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_logical_name'>logical_name</span><span class='op'>|</span>
|
@@ -197,7 +200,8 @@ even though it is not native to CloudFormation. With this
|
|
197
200
|
group: eng
|
198
201
|
|
199
202
|
AdminUser:
|
200
|
-
group: admin
|
203
|
+
group: admin
|
204
|
+
</code></pre>
|
201
205
|
|
202
206
|
<h3 id="label-Using+the+CLI">Using the CLI</h3>
|
203
207
|
|
@@ -266,7 +270,8 @@ configuration).</p>
|
|
266
270
|
<p>You can pass values to the CLI deploy command after the stack name on the
|
267
271
|
command line as in:</p>
|
268
272
|
|
269
|
-
<pre class="code ruby"><code class="ruby">bin/reservoir deploy foobar Param1=Foo Param2=Bar
|
273
|
+
<pre class="code ruby"><code class="ruby">bin/reservoir deploy foobar Param1=Foo Param2=Bar
|
274
|
+
</code></pre>
|
270
275
|
|
271
276
|
<p>Those parameters will get passed in as values when the stack is deployed.</p>
|
272
277
|
|
@@ -305,8 +310,8 @@ from above is below:</p>
|
|
305
310
|
<pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="Humidifier.html" title="Humidifier (module)">Humidifier</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Humidifier/Reservoir.html" title="Humidifier::Reservoir (module)">Reservoir</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'><span class='object_link'><a href="Humidifier/Reservoir.html#configure-class_method" title="Humidifier::Reservoir.configure (method)">configure</a></span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_config'>config</span><span class='op'>|</span>
|
306
311
|
<span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='symbol'>:users</span><span class='comma'>,</span> <span class='label'>to:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>AWS::IAM::User</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span>
|
307
312
|
<span class='const'>GROUPS</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
308
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='
|
309
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='
|
313
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eng</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Engineering</span><span class='words_sep'> </span><span class='tstring_content'>Testing</span><span class='words_sep'> </span><span class='tstring_content'>Deployment</span><span class='tstring_end'>]</span></span><span class='comma'>,</span>
|
314
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>Management</span><span class='words_sep'> </span><span class='tstring_content'>Administration</span><span class='tstring_end'>]</span></span>
|
310
315
|
<span class='rbrace'>}</span>
|
311
316
|
|
312
317
|
<span class='id identifier rubyid_defaults'>defaults</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_logical_name'>logical_name</span><span class='op'>|</span>
|
@@ -347,7 +352,8 @@ ProductionPrivateSubnet2c:
|
|
347
352
|
vpc: ProductionVPC
|
348
353
|
cidr_block: 10.0.128.0/19
|
349
354
|
availability_zone: us-west-2c
|
350
|
-
export: true
|
355
|
+
export: true
|
356
|
+
</code></pre>
|
351
357
|
|
352
358
|
<p>And then in another stack, you could reference those values
|
353
359
|
(<code>stacks/rds/db_subnets_groups.yml</code>):</p>
|
@@ -357,7 +363,8 @@ ProductionPrivateSubnet2c:
|
|
357
363
|
subnets:
|
358
364
|
- ProductionPrivateSubnet2a
|
359
365
|
- ProductionPrivateSubnet2b
|
360
|
-
- ProductionPrivateSubnet2c
|
366
|
+
- ProductionPrivateSubnet2c
|
367
|
+
</code></pre>
|
361
368
|
|
362
369
|
<p>Within the configuration, you would specify to use the
|
363
370
|
<code>Fn::ImportValue</code> function like so:</p>
|
@@ -406,9 +413,9 @@ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
406
413
|
</div></div>
|
407
414
|
|
408
415
|
<div id="footer">
|
409
|
-
Generated on
|
416
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
410
417
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
411
|
-
0.9.12 (ruby-2.
|
418
|
+
0.9.12 (ruby-2.5.0).
|
412
419
|
</div>
|
413
420
|
|
414
421
|
</div>
|
@@ -100,9 +100,9 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Mon Mar 12 11:14:15 2018 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
|
-
0.9.12 (ruby-2.
|
105
|
+
0.9.12 (ruby-2.5.0).
|
106
106
|
</div>
|
107
107
|
|
108
108
|
</div>
|
@@ -26,14 +26,14 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
26
26
|
|
27
27
|
spec.add_dependency 'aws-sdk-cloudformation', '~> 1.3'
|
28
28
|
spec.add_dependency 'aws-sdk-s3', '~> 1.8'
|
29
|
-
spec.add_dependency 'humidifier', '~>
|
29
|
+
spec.add_dependency 'humidifier', '~> 2.0'
|
30
30
|
spec.add_dependency 'thor', '~> 0.20'
|
31
31
|
spec.add_dependency 'thor-hollaback', '~> 0.1'
|
32
32
|
|
33
33
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
34
|
-
spec.add_development_dependency 'minitest', '~> 5.
|
34
|
+
spec.add_development_dependency 'minitest', '~> 5.11'
|
35
35
|
spec.add_development_dependency 'rake', '~> 12.3'
|
36
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
36
|
+
spec.add_development_dependency 'rubocop', '~> 0.52'
|
37
37
|
spec.add_development_dependency 'simplecov', '~> 0.15'
|
38
38
|
spec.add_development_dependency 'yard', '~> 0.9'
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: humidifier-reservoir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Localytics
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-cloudformation
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: thor
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '5.
|
103
|
+
version: '5.11'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '5.
|
110
|
+
version: '5.11'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0.
|
131
|
+
version: '0.52'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0.
|
138
|
+
version: '0.52'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: simplecov
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
240
|
version: '0'
|
241
241
|
requirements: []
|
242
242
|
rubyforge_project:
|
243
|
-
rubygems_version: 2.
|
243
|
+
rubygems_version: 2.7.4
|
244
244
|
signing_key:
|
245
245
|
specification_version: 4
|
246
246
|
summary: Specify CloudFormation resources in YAML
|