Module: Mint

Defined in:
lib/proutils/mint/copier.rb

Defined Under Namespace

Classes: Copier

Class Method Summary collapse

Class Method Details

.datadirObject

TODO Better way to support RubyGems and Rolls?



26
27
28
29
30
31
32
33
# File 'lib/proutils/mint/copier.rb', line 26

def self.datadir
  dir = File.expand_path("#{File.dirname(__FILE__)}/../../../data/mint")
  if File.directory?(dir)
    dir
  else
    File.join(File.join(Config::CONFIG['datadir'], 'mint'))
  end
end

.pathsObject



20
21
22
# File 'lib/proutils/mint/copier.rb', line 20

def self.paths
  (ENV['MINT_PATH'] || []) + [datadir]
end