Sha256: 035a1482e66ccff7f8521c8d93ed2b92d5b5417323c99f913a132ad13878ca08
Contents?: true
Size: 768 Bytes
Versions: 29
Compression:
Stored size: 768 Bytes
Contents
module Lono::Inspector class Base < Lono::AbstractBase extend Memoist def run generate templates = @template_name ? [@template_name] : all_templates templates.each do |template_name| perform(template_name) end end def generate if @options[:source] Lono::Cfn::Download.new(@options).run else generate_templates end end def generate_templates Lono::Template::Generator.new(@options.merge(quiet: false)).run end def all_templates templates_path = "#{Lono.config.output_path}/#{@blueprint}/templates" Dir.glob("#{templates_path}/**").map do |path| path.sub("#{templates_path}/", '').sub('.yml','') # template_name end end end end
Version data entries
29 entries across 29 versions & 1 rubygems