Sha256: ef2fed252e272b7ad8ab28706d3b50f5d2344e3e3bd2d037771f901f11b09b23

Contents?: true

Size: 636 Bytes

Versions: 8

Compression:

Stored size: 636 Bytes

Contents

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

    def run
      @register.run
      download
      final_materialize
    end

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

    def final_materialize
      jades = Lono::Jade::Registry.downloaded_extensions
      Lono::Jade::Materializer::Final.new.build(jades)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/extensions/preparer.rb
lono-7.5.1 lib/lono/extensions/preparer.rb
lono-7.5.0 lib/lono/extensions/preparer.rb
lono-7.4.11 lib/lono/extensions/preparer.rb
lono-7.4.10 lib/lono/extensions/preparer.rb
lono-7.4.9 lib/lono/extensions/preparer.rb
lono-7.4.8 lib/lono/extensions/preparer.rb
lono-7.4.7 lib/lono/extensions/preparer.rb