Method: Bake::LibElements.adaptPath
- Defined in:
- lib/bake/libElement.rb
.adaptPath(path, block, prefix) ⇒ Object
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/bake/libElement.rb', line 42 def self.adaptPath(path, block, prefix) adaptedPath = path if not File.is_absolute?(path) prefix ||= File.rel_from_to_project(@@projectDir, block.projectDir) adaptedPath = prefix + path if prefix adaptedPath = Pathname.new(adaptedPath).cleanpath.to_s end #adaptedPath = "\"" + adaptedPath + "\"" if adaptedPath.include?(" ") [adaptedPath, prefix] end |