lib/jets/cfn/builders/parent_builder.rb in jets-3.2.2 vs lib/jets/cfn/builders/parent_builder.rb in jets-4.0.0

- old
+ new

@@ -17,11 +17,11 @@ build_child_resources if full? end # template_path is an interface method def template_path - Jets::Naming.parent_template_path + Jets::Names.parent_template_path end def build_minimal_resources add_description("Jets: #{Jets.version} Code: #{Util::Source.version}") @@ -88,11 +88,11 @@ # Example paths: # #{Jets.build_root}/templates/demo-dev-2-shared-resources.yml # #{Jets.build_root}/templates/demo-dev-2-app-comments_controller.yml # #{Jets.build_root}/templates/demo-dev-2-authorizers-main_authorizer.yml def for_each_path(type) - expression = "#{Jets::Naming.template_path_prefix}-#{type}-*" + expression = "#{Jets::Names.template_path_prefix}-#{type}-*" Dir.glob(expression).each do |path| next unless File.file?(path) yield(path) end end @@ -121,10 +121,10 @@ resource = Jets::Resource::ChildStack::ApiGateway.new(@options[:s3_bucket]) add_child_resources(resource) end def add_api_resources - expression = "#{Jets::Naming.template_path_prefix}-api-resources-*" + expression = "#{Jets::Names.template_path_prefix}-api-resources-*" # IE: path: #{Jets.build_root}/templates/demo-dev-2-api-resources-1.yml" Dir.glob(expression).sort.each do |path| next unless File.file?(path) regexp = Regexp.new("#{Jets.config.project_namespace}-api-resources-(\\d+).yml") # tricky to escape \d pattern