Sha256: 5e3d53b65c1ddd48eb35a9165e78d1ec415786f4ac80122be7aa2bc905f484b5
Contents?: true
Size: 904 Bytes
Versions: 4
Compression:
Stored size: 904 Bytes
Contents
module Lono # This class is not use by lono internally. It is really only meant to be # exposed to the lono user_data command so users can debug their generated # user_data scripts. It is useful for debugging. # # Normally, the Lono::Erb#run method generates the CloudFormation template # and embeds user-data script into the template. class UserData < Lono::CLI::Base include Lono::Builder::Dsl::Syntax def initialize(options={}) super @name = options[:name] @path = "#{Lono.root}/app/user_data/#{@name}.sh" end def generate pretty_path = pretty_path(@path) logger.info "Building user_data for '#{@name}' at #{pretty_path}" if File.exist?(@path) logger.info RenderMePretty.result(@path, context: self) else logger.info "ERROR: #{pretty_path} does not exist".color(:red) exit 1 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc6 | lib/lono/user_data.rb |
lono-8.0.0.pre.rc5 | lib/lono/user_data.rb |
lono-8.0.0.pre.rc4 | lib/lono/user_data.rb |
lono-8.0.0.pre.rc3 | lib/lono/user_data.rb |