Sha256: 1073c120ffba480c9a8936d13cc81098b701f24ea0a7ce8a66e255cdbdfcac90
Contents?: true
Size: 562 Bytes
Versions: 18
Compression:
Stored size: 562 Bytes
Contents
class Lono::AppFile::Build class LambdaLayer def initialize(blueprint, registry_item) @blueprint, @registry_item = blueprint, registry_item end def build lang = @registry_item.options[:lang] unless lang =~ /ruby/ puts "WARN: Currently only support ruby lambda layers".color(:yellow) return end klass_name = "Lono::AppFile::Build::LambdaLayer::#{lang.camelize}Packager" klass = klass_name.constantize packager = klass.new(@blueprint, @registry_item) packager.build end end end
Version data entries
18 entries across 18 versions & 1 rubygems