docs/Humidifier/Reservoir/Stack.html in humidifier-reservoir-0.2.3 vs docs/Humidifier/Reservoir/Stack.html in humidifier-reservoir-0.3.0

- old
+ new

@@ -281,11 +281,11 @@ <li class="public "> <span class="summary_signature"> - <a href="#deploy-instance_method" title="#deploy (instance method)">#<strong>deploy</strong>(wait = false) &#x21d2; Object </a> + <a href="#deploy-instance_method" title="#deploy (instance method)">#<strong>deploy</strong>(wait = false, parameter_values = {}) &#x21d2; Object </a> </span> @@ -329,10 +329,32 @@ <li class="public "> <span class="summary_signature"> + <a href="#parameters-instance_method" title="#parameters (instance method)">#<strong>parameters</strong> &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'></div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + <a href="#resources-instance_method" title="#resources (instance method)">#<strong>resources</strong> &#x21d2; Object </a> </span> @@ -693,19 +715,17 @@ 29 30 31 32 33 -34 -35</pre> +34</pre> </td> <td> <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 29</span> <span class='kw'>def</span> <span class='id identifier rubyid_create_change_set'>create_change_set</span> - <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_ensure_resources'>ensure_resources</span> - <span class='id identifier rubyid_valid?'>valid?</span> + <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'>&#39;</span><span class='tstring_content'>change</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_valid?'>valid?</span> <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> <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> <span class='kw'>end</span></pre> </td> @@ -714,11 +734,11 @@ </div> <div class="method_details "> <h3 class="signature " id="deploy-instance_method"> - #<strong>deploy</strong>(wait = false) &#x21d2; <tt>Object</tt> + #<strong>deploy</strong>(wait = false, parameter_values = {}) &#x21d2; <tt>Object</tt> @@ -726,37 +746,41 @@ <tr> <td> <pre class="lines"> +36 37 38 39 40 41 42 -43</pre> +43 +44</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 37</span> + <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 36</span> -<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> - <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_ensure_resources'>ensure_resources</span> - <span class='id identifier rubyid_valid?'>valid?</span> +<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='comma'>,</span> <span class='id identifier rubyid_parameter_values'>parameter_values</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <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'>&#39;</span><span class='tstring_content'>deploy</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_valid?'>valid?</span> - <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> + <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='comma'>,</span> + <span class='label'>parameters:</span> <span class='id identifier rubyid_parameter_values'>parameter_values</span> + <span class='rbrace'>}</span> <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> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> - <h3 class="signature " id="resources-instance_method"> + <h3 class="signature " id="parameters-instance_method"> - #<strong>resources</strong> &#x21d2; <tt>Object</tt> + #<strong>parameters</strong> &#x21d2; <tt>Object</tt> @@ -764,22 +788,78 @@ <tr> <td> <pre class="lines"> -45 46 47 48 -49</pre> +49 +50 +51 +52 +53 +54 +55 +56</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 45</span> + <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 46</span> +<span class='kw'>def</span> <span class='id identifier rubyid_parameters'>parameters</span> + <span class='ivar'>@parameters</span> <span class='op'>||=</span> + <span class='kw'>begin</span> + <span class='id identifier rubyid_parameter_filepath'>parameter_filepath</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_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_detect'>detect</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_filepath'>filepath</span><span class='op'>|</span> + <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.yml</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>parameters</span><span class='tstring_end'>&#39;</span></span> + <span class='kw'>end</span> + + <span class='id identifier rubyid_parameter_filepath'>parameter_filepath</span> <span class='op'>?</span> <span class='const'><span class='object_link'><a href="ParameterList.html" title="Humidifier::Reservoir::ParameterList (module)">ParameterList</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from'><span class='object_link'><a href="ParameterList.html#from-class_method" title="Humidifier::Reservoir::ParameterList.from (method)">from</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_parameter_filepath'>parameter_filepath</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='kw'>end</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> + <h3 class="signature " id="resources-instance_method"> + + #<strong>resources</strong> &#x21d2; <tt>Object</tt> + + + + + +</h3><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +58 +59 +60 +61 +62 +63 +64 +65 +66 +67</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 58</span> + <span class='kw'>def</span> <span class='id identifier rubyid_resources'>resources</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_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> - <span class='id identifier rubyid_resources'>resources</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.yml</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span> + <span class='id identifier rubyid_basename'>basename</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.yml</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> + + <span class='comment'># Explicitly skip past parameters so we can pull them out later +</span> <span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_basename'>basename</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>parameters</span><span class='tstring_end'>&#39;</span></span> + + <span class='id identifier rubyid_resources'>resources</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='id identifier rubyid_basename'>basename</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='kw'>end</span> <span class='kw'>end</span></pre> </td> </tr> </table> @@ -798,16 +878,16 @@ <tr> <td> <pre class="lines"> -51 -52 -53</pre> +69 +70 +71</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 51</span> + <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 69</span> <span class='kw'>def</span> <span class='id identifier rubyid_stack_name'>stack_name</span> <span class='ivar'>@stack_name</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>&quot;</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'>&quot;</span></span> <span class='kw'>end</span></pre> </td> @@ -828,16 +908,16 @@ <tr> <td> <pre class="lines"> -55 -56 -57</pre> +73 +74 +75</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 55</span> + <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 73</span> <span class='kw'>def</span> <span class='id identifier rubyid_to_cf'>to_cf</span> <span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_to_cf'>to_cf</span> <span class='kw'>end</span></pre> </td> @@ -858,18 +938,20 @@ <tr> <td> <pre class="lines"> -59 -60 -61</pre> +77 +78 +79 +80</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 59</span> + <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 77</span> <span class='kw'>def</span> <span class='id identifier rubyid_upload'>upload</span> + <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'>&#39;</span><span class='tstring_content'>upload</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_valid?'>valid?</span> <span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_upload'>upload</span> <span class='kw'>end</span></pre> </td> </tr> </table> @@ -910,22 +992,22 @@ <tr> <td> <pre class="lines"> -63 -64 -65 -66 -67 -68 -69 -70 -71</pre> +82 +83 +84 +85 +86 +87 +88 +89 +90</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 63</span> + <pre class="code"><span class="info file"># File 'lib/humidifier/reservoir/stack.rb', line 82</span> <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span> <span class='id identifier rubyid_humidifier_stack'>humidifier_stack</span><span class='period'>.</span><span class='id identifier rubyid_valid?'>valid?</span> <span class='kw'>rescue</span> <span class='const'>Aws</span><span class='op'>::</span><span class='const'>CloudFormation</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>AccessDenied</span> <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='heredoc_beg'>&lt;&lt;~MSG</span> @@ -942,10 +1024,10 @@ </div> </div> <div id="footer"> - Generated on Tue Dec 5 14:49:52 2017 by + Generated on Tue Dec 5 18:38:22 2017 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.9.12 (ruby-2.4.2). </div> </div> \ No newline at end of file