Sha256: 3e7933ddc89e6ba2423899e8e637b6b21cc204a148baf5c5119bceb4aff9c3dd
Contents?: true
Size: 624 Bytes
Versions: 15
Compression:
Stored size: 624 Bytes
Contents
class Lono::AppFile::Registry # Holds metadata about the item in the regsitry. class Item include Lono::Utils::Item::FileMethods attr_reader :name, :options, :type def initialize(name, blueprint, options={}) @name, @blueprint, @options = name, blueprint, options @type = options[:type] || "file" end def src_path "#{Lono.blueprint_root}/app/files/#{@name}" end def output_path if @type == "file" "#{Lono.root}/output/#{@blueprint}/files/#{@name}" else "#{Lono.root}/output/#{@blueprint}/lambda_layers/#{@name}/opt" end end end end
Version data entries
15 entries across 15 versions & 1 rubygems