Sha256: adb9eb79939a20a563f79256efe19b8d3e6aa12dad1b1df3b639af360e46e7ee
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
module Lono::Inspector class Base < Lono::CLI::Base extend Memoist def run build templates = @template_name ? [@template_name] : all_templates templates.each do |template_name| perform(template_name) end end def build if @options[:source] Lono::Cfn::Download.new(@options).run else build_templates end end def build_templates Lono::Builder::Template.new(@options.merge(quiet: false)).run end def all_templates templates_path = "#{Lono.root}/output/#{@blueprint.name}/templates" Dir.glob("#{templates_path}/**").map do |path| path.sub("#{templates_path}/", '').sub('.yml','') # template_name end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc3 | lib/lono/inspector/base.rb |
lono-8.0.0.pre.rc2 | lib/lono/inspector/base.rb |
lono-8.0.0.pre.rc1 | lib/lono/inspector/base.rb |