Sha256: 88bbf2e18fa21d67bbcbe940da49286f0a39fda176db3845c9aa314c50b7a49b

Contents?: true

Size: 558 Bytes

Versions: 13

Compression:

Stored size: 558 Bytes

Contents

class Lono::Extensions
  class Preparer < Lono::AbstractBase
    def initialize(options={})
      super
      @register = Register.new(options)
    end

    def run
      @register.run
      materialize
      # loading happens in Lono::Extensions::Loader load_all_extension_helpers module
      # so it has the proper self.class include scope
    end

    def materialize
      Lono::Jade::Registry.tracked_extensions.each do |registry|
        jade = Lono::Jade.new(registry.name, "extension", registry)
        jade.materialize
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lono-7.4.6 lib/lono/extensions/preparer.rb
lono-7.4.5 lib/lono/extensions/preparer.rb
lono-7.4.4 lib/lono/extensions/preparer.rb
lono-7.4.3 lib/lono/extensions/preparer.rb
lono-7.4.2 lib/lono/extensions/preparer.rb
lono-7.4.1 lib/lono/extensions/preparer.rb
lono-7.4.0 lib/lono/extensions/preparer.rb
lono-7.3.2 lib/lono/extensions/preparer.rb
lono-7.3.1 lib/lono/extensions/preparer.rb
lono-7.3.0 lib/lono/extensions/preparer.rb
lono-7.2.3 lib/lono/extensions/preparer.rb
lono-7.2.2 lib/lono/extensions/preparer.rb
lono-7.2.1 lib/lono/extensions/preparer.rb