cfhighlander 0.12.2.alpha.1603234673 → 0.12.2.alpha.1603236787
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/README.md +0 -11
 - data/lib/cfhighlander.dsl.subcomponent.rb +1 -4
 - data/lib/cfhighlander.dsl.template.rb +1 -5
 - data/templates/cfndsl.component.template.erb +0 -3
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: d160b0c44c1e25a1fbcd9525a23fb48380035ec2f3567af0c4470088ef6ec8d6
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: '083bf6f5eeefc20d94ba90c1de9fb4162fd71c16ac0d24dea11830149da118db'
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 037d811aef701656f57aa102d77d18e6729eb434ac53fa63f59dd280a4047c39594ae3914ec51facb6760d004d52b2d7e4ee7fcf354ad1ceac8535055c7732a2
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: cf3348f683377b133a362d1b4e19ee349aeeea8ebdf46368cd195569c79c705b5f10f794004428b7e1c95423340d646f7a241ff37e201fb3e95b92a54b4bb784
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -495,17 +495,6 @@ CfhighlanderTemplate do 
     | 
|
| 
       495 
495 
     | 
    
         
             
            end
         
     | 
| 
       496 
496 
     | 
    
         
             
            ```
         
     | 
| 
       497 
497 
     | 
    
         | 
| 
       498 
     | 
    
         
            -
            **Nested Stack Timeout** - If you ant set a timeout on your nested cloudformation stack you can set this with the `timeout: int` option on the component.
         
     | 
| 
       499 
     | 
    
         
            -
             
     | 
| 
       500 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       501 
     | 
    
         
            -
            CfhighlanderTemplate do
         
     | 
| 
       502 
     | 
    
         
            -
              
         
     | 
| 
       503 
     | 
    
         
            -
              # sets a timeout for 10 minutes on the nested VPC stack, if the stack is not created or updated within 10 minutes the stack rolls back.
         
     | 
| 
       504 
     | 
    
         
            -
              Component name: 'vpc', template: 'vpc-v2', timeout: 10
         
     | 
| 
       505 
     | 
    
         
            -
              
         
     | 
| 
       506 
     | 
    
         
            -
            end
         
     | 
| 
       507 
     | 
    
         
            -
            ```
         
     | 
| 
       508 
     | 
    
         
            -
             
     | 
| 
       509 
498 
     | 
    
         
             
            **Convert config value to parameter** - In case of inner component having configuration value
         
     | 
| 
       510 
499 
     | 
    
         
             
            you wish to expose as runtime parameter, it is possible to do so with limitation that configuration
         
     | 
| 
       511 
500 
     | 
    
         
             
            value is only used in *resource declarations*, as property value. If configuration value is being used
         
     | 
| 
         @@ -36,8 +36,7 @@ module Cfhighlander 
     | 
|
| 
       36 
36 
     | 
    
         
             
                      :template_version,
         
     | 
| 
       37 
37 
     | 
    
         
             
                      :inlined,
         
     | 
| 
       38 
38 
     | 
    
         
             
                      :dependson,
         
     | 
| 
       39 
     | 
    
         
            -
                      :condition 
     | 
| 
       40 
     | 
    
         
            -
                      :template_timeout
         
     | 
| 
      
 39 
     | 
    
         
            +
                      :condition
         
     | 
| 
       41 
40 
     | 
    
         | 
| 
       42 
41 
     | 
    
         
             
                  def initialize(parent,
         
     | 
| 
       43 
42 
     | 
    
         
             
                      name,
         
     | 
| 
         @@ -50,7 +49,6 @@ module Cfhighlander 
     | 
|
| 
       50 
49 
     | 
    
         
             
                      condition = nil,
         
     | 
| 
       51 
50 
     | 
    
         
             
                      enabled = true,
         
     | 
| 
       52 
51 
     | 
    
         
             
                      dependson = [],
         
     | 
| 
       53 
     | 
    
         
            -
                      template_timeout = nil,
         
     | 
| 
       54 
52 
     | 
    
         
             
                      inline = false,
         
     | 
| 
       55 
53 
     | 
    
         
             
                      distribution_format = 'yaml')
         
     | 
| 
       56 
54 
     | 
    
         | 
| 
         @@ -61,7 +59,6 @@ module Cfhighlander 
     | 
|
| 
       61 
59 
     | 
    
         
             
                    @conditional = conditional
         
     | 
| 
       62 
60 
     | 
    
         
             
                    @condition = condition
         
     | 
| 
       63 
61 
     | 
    
         
             
                    @dependson = [*dependson]
         
     | 
| 
       64 
     | 
    
         
            -
                    @template_timeout = template_timeout
         
     | 
| 
       65 
62 
     | 
    
         
             
                    @inlined = inline
         
     | 
| 
       66 
63 
     | 
    
         | 
| 
       67 
64 
     | 
    
         
             
                    template_name = template
         
     | 
| 
         @@ -37,8 +37,7 @@ module Cfhighlander 
     | 
|
| 
       37 
37 
     | 
    
         
             
                      :lambda_functions_keys,
         
     | 
| 
       38 
38 
     | 
    
         
             
                      :description,
         
     | 
| 
       39 
39 
     | 
    
         
             
                      :dependson_components,
         
     | 
| 
       40 
     | 
    
         
            -
                      :template_dir 
     | 
| 
       41 
     | 
    
         
            -
                      :template_timeout
         
     | 
| 
      
 40 
     | 
    
         
            +
                      :template_dir
         
     | 
| 
       42 
41 
     | 
    
         | 
| 
       43 
42 
     | 
    
         
             
                  attr_reader :conditions,
         
     | 
| 
       44 
43 
     | 
    
         
             
                      :subcomponents,
         
     | 
| 
         @@ -58,7 +57,6 @@ module Cfhighlander 
     | 
|
| 
       58 
57 
     | 
    
         
             
                    @lambda_functions_keys = []
         
     | 
| 
       59 
58 
     | 
    
         
             
                    @dependson_components_templates = []
         
     | 
| 
       60 
59 
     | 
    
         
             
                    @dependson_components = []
         
     | 
| 
       61 
     | 
    
         
            -
                    @template_timeout = nil
         
     | 
| 
       62 
60 
     | 
    
         
             
                    @conditions = []
         
     | 
| 
       63 
61 
     | 
    
         
             
                    @config_overrides = {}
         
     | 
| 
       64 
62 
     | 
    
         
             
                    @extended_template = nil
         
     | 
| 
         @@ -129,7 +127,6 @@ module Cfhighlander 
     | 
|
| 
       129 
127 
     | 
    
         
             
                      condition: nil,
         
     | 
| 
       130 
128 
     | 
    
         
             
                      enabled: true,
         
     | 
| 
       131 
129 
     | 
    
         
             
                      dependson: [],
         
     | 
| 
       132 
     | 
    
         
            -
                      timeout: nil,
         
     | 
| 
       133 
130 
     | 
    
         
             
                      render: Cfhighlander::Model::Component::Substack,
         
     | 
| 
       134 
131 
     | 
    
         
             
                      &block)
         
     | 
| 
       135 
132 
     | 
    
         
             
                    puts "INFO: Requested subcomponent #{name} with template #{template}"
         
     | 
| 
         @@ -154,7 +151,6 @@ module Cfhighlander 
     | 
|
| 
       154 
151 
     | 
    
         
             
                        condition,
         
     | 
| 
       155 
152 
     | 
    
         
             
                        enabled,
         
     | 
| 
       156 
153 
     | 
    
         
             
                        dependson,
         
     | 
| 
       157 
     | 
    
         
            -
                        timeout,
         
     | 
| 
       158 
154 
     | 
    
         
             
                        render == Cfhighlander::Model::Component::Inline
         
     | 
| 
       159 
155 
     | 
    
         
             
                    )
         
     | 
| 
       160 
156 
     | 
    
         
             
                    # component.instance_eval(&block) unless block.nil?
         
     | 
| 
         @@ -23,9 +23,6 @@ CloudFormation do 
     | 
|
| 
       23 
23 
     | 
    
         
             
                    <% for @param in @subcomponent.parameters %><%="\t"%>'<%=@param.name %>' => <%= @param.cfndsl_value %>,
         
     | 
| 
       24 
24 
     | 
    
         
             
                    <% end %>})
         
     | 
| 
       25 
25 
     | 
    
         
             
                    <% if @subcomponent.conditional %>Condition '<%= @subcomponent.condition %>' <% end %>
         
     | 
| 
       26 
     | 
    
         
            -
                    <%- if !@subcomponent.template_timeout.nil? %>
         
     | 
| 
       27 
     | 
    
         
            -
                    TimeoutInMinutes <%=  @subcomponent.template_timeout.to_i %>
         
     | 
| 
       28 
     | 
    
         
            -
                    <%- end %>
         
     | 
| 
       29 
26 
     | 
    
         
             
                end
         
     | 
| 
       30 
27 
     | 
    
         
             
            <% end %>
         
     | 
| 
       31 
28 
     | 
    
         |