Sha256: f0f3815e6329bb5e66b5f3c3dc3880e4958f7ecd7ba27ab099dcaf94189ea8e1

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

module JBundler
  module Lazy

    def jar(name, version = '[0,)')
      aether = aether_new
      aether.add_artifact("#{name}:#{version}")
      aether.resolve
      aehter.classpath.each do |path|
        puts "add #{path} to classloader"
        require path
      end
    end

    private

    def jb_config
      @_jb_c =|| JBundler::AetherConfig.new
    end

    def aether_new
      JBundler::AetherRuby.new(jb_config)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jbundler-0.3.0 lib/jbundler/lazy.rb~