Sha256: aaca4178d478c3e50f8be0c308cf5dcaba2b7df75fb0b024218a17a6aae5e3d7
Contents?: true
Size: 1.03 KB
Versions: 17
Compression:
Stored size: 1.03 KB
Contents
module Lono::Configset::Strategy class Dsl < Base # Configset helpers take higher precedence than Lono DSL Helpers. IE: s3_key is overwritten but s3_bucket is the same include Helpers::Dsl def initialize(options={}) super @structure = {} # holds in memory the configset hash structure to build AWS::CloudFormation::Init @current = "main" # current configset @command_counts = Hash.new(0) @tracked = [] # Also support ability to add AWS::CloudFormation::Authentication @authentication = nil # holds IAM policy info to build AWS::CloudFormation::Authentication end def find_evaluation_path "#{@root}/lib/configset.rb" end def load evaluate_file(@evaluation_path) configsets = @configsets || @tracked.uniq configsets = ["main"] if configsets.empty? configsets_structure = {"configSets" => {"default" => configsets}}.merge(@structure) full = { "AWS::CloudFormation::Init" => configsets_structure } full.deep_stringify_keys! end end end
Version data entries
17 entries across 17 versions & 1 rubygems