Sha256: 3af51e86c53d434548d871fbeea489c37a687ae16136e3e44834ee6c99471b43

Contents?: true

Size: 385 Bytes

Versions: 20

Compression:

Stored size: 385 Bytes

Contents

module Lono::AppFile
  class Registry
    cattr_reader :items
    @@items = []

    class << self
      def register(name, blueprint, options={})
        @@items << Item.new(name, blueprint, options) unless @@items.detect { |i| i.name == name && i.type == options[:type] }
      end

      def layers
        @@items.select { |i| i.type == "lambda_layer" }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc2 lib/lono/app_file/registry.rb
lono-8.0.0.pre.rc1 lib/lono/app_file/registry.rb
lono-7.5.2 lib/lono/app_file/registry.rb
lono-7.5.1 lib/lono/app_file/registry.rb
lono-7.5.0 lib/lono/app_file/registry.rb
lono-7.4.11 lib/lono/app_file/registry.rb
lono-7.4.10 lib/lono/app_file/registry.rb
lono-7.4.9 lib/lono/app_file/registry.rb
lono-7.4.8 lib/lono/app_file/registry.rb
lono-7.4.7 lib/lono/app_file/registry.rb
lono-7.4.6 lib/lono/app_file/registry.rb
lono-7.4.5 lib/lono/app_file/registry.rb
lono-7.4.4 lib/lono/app_file/registry.rb
lono-7.4.3 lib/lono/app_file/registry.rb
lono-7.4.2 lib/lono/app_file/registry.rb
lono-7.4.1 lib/lono/app_file/registry.rb
lono-7.4.0 lib/lono/app_file/registry.rb
lono-7.3.2 lib/lono/app_file/registry.rb
lono-7.3.1 lib/lono/app_file/registry.rb
lono-7.3.0 lib/lono/app_file/registry.rb