Sha256: 8f863fb24a4a4b71d3569d285ba58d48c90e90166606a3a4ba1bcea4631c1cb7

Contents?: true

Size: 740 Bytes

Versions: 4

Compression:

Stored size: 740 Bytes

Contents

begin
  require 'maven'
rescue LoadError
  #allow to access the version anyways
end

module TeslaMaven

  VERSION = '0.1.1'.freeze
  
  def self.home
    File.expand_path( File.join( File.dirname( File.expand_path( __FILE__ ) ), '..' ) )
  end

  def self.bin( file = nil )
    if file
      File.join( path( 'bin' ), file )
    else
      path( 'bin' )
    end
  end

  def self.ext
    path( 'ext' )
  end

  def self.lib
    path( 'lib' )
  end

  def self.maven_home
    Maven.home
  end

  def self.maven_bin
    Maven.bin
  end

  def self.maven_lib
    Maven.lib
  end

  def self.maven_conf
    Maven.conf
  end

  def self.maven_boot
    Maven.boot
  end
  
  private

  def self.path( name )
    File.join( home, name )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-maven-3.1.1.0.8 ruby/tesla_maven.rb
ruby-maven-3.1.1.0.7 ruby/tesla_maven.rb
ruby-maven-3.1.1.0.6 ruby/tesla_maven.rb
ruby-maven-3.1.1.0.5 ruby/tesla_maven.rb