Module: Mint
- Defined in:
- lib/proutils/mint/copier.rb
Defined Under Namespace
Classes: Copier
Class Method Summary collapse
-
.datadir ⇒ Object
TODO Better way to support RubyGems and Rolls?.
- .paths ⇒ Object
Class Method Details
.datadir ⇒ Object
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.("#{File.dirname(__FILE__)}/../../../data/mint") if File.directory?(dir) dir else File.join(File.join(Config::CONFIG['datadir'], 'mint')) end end |
.paths ⇒ Object
20 21 22 |
# File 'lib/proutils/mint/copier.rb', line 20 def self.paths (ENV['MINT_PATH'] || []) + [datadir] end |