Module: Naether

Defined in:
lib/naether/java.rb,
lib/naether.rb,
lib/naether/maven.rb,
lib/naether/runtime.rb,
lib/naether/notation.rb,
lib/naether/java/ruby.rb,
lib/naether/bootstrap.rb,
lib/naether/java/jruby.rb,
lib/naether/configuration.rb

Overview

Author:

Defined Under Namespace

Classes: Bootstrap, Configurator, Java, Maven, Notation, Runtime

Class Method Summary (collapse)

Class Method Details

+ (Object) bootstrap_dependencies(dep_file = nil)

List of Java dependencies needed to bootstrap Naether

Parameters:

  • dep_file (String) (defaults to: nil)

    path

See Also:

  • {Naether{Naether::Bootstrap{Naether::Bootstrap#dependencies}


34
35
36
37
# File 'lib/naether.rb', line 34

def bootstrap_dependencies( dep_file=nil )
  require "#{File.dirname(__FILE__)}/naether/bootstrap"
  Naether::Bootstrap.dependencies( dep_file )
end

+ (Object) create



57
58
59
60
# File 'lib/naether.rb', line 57

def create
  require "#{File.dirname(__FILE__)}/naether/runtime"
  Naether::Runtime.new
end

+ (Naether) create_from_jars(jars)

Loads all jars creates a new instance of Naether

Parameters:

  • jars (Array<String>)

    of paths

Returns:



51
52
53
54
55
# File 'lib/naether.rb', line 51

def create_from_jars( jars )
  require "#{File.dirname(__FILE__)}/naether/java"
  Naether::Java.internal_load_paths( jars )
  create
end

+ (Object) platform

Helper for platform detection



42
43
44
# File 'lib/naether.rb', line 42

def platform
  Naether::Configuration.platform
end