Sha256: 56e9741f643e7377f1e8d76da61463a44303c8f732362505f27cb036f28644de

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

require 'fileutils'
require File.join(File.dirname(__FILE__), "env_handler")

vendor_path = File.join(FileUtils.pwd, 'vendor')

mack_path = File.join(vendor_path, 'framework', 'mack', 'lib')
mack_more_path = File.join(vendor_path, 'framework', 'mack-more')
# gem_path = File.join(vendor_path, 'gems')

if File.exists?(mack_path)
  $:.insert(0, File.expand_path(mack_path))
else
  require 'rubygems'
  if @mack_gem_version
    gem 'mack', @mack_gem_version
  else
    gem 'mack'
  end
end

if File.exists?(mack_more_path)
  Dir.glob(File.join(mack_more_path, '*')).each_with_index do |d, i|
    $:.insert(i+1, File.expand_path(File.join(d, 'lib')))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mack-0.7.1.1 bin/gem_load_path.rb
mack-0.7.1 bin/gem_load_path.rb