Method: Node::Compiler#copypath
- Defined in:
- lib/node/compiler.rb
#copypath(path) ⇒ Object
138 139 140 141 142 143 144 |
# File 'lib/node/compiler.rb', line 138 def copypath(path) path = File.(path) raise 'Logic error 1 in copypath' unless @project_root == path[0...(@project_root.size)] ret = File.join(@copy_dir, path[(@project_root.size)..-1]) raise 'Logic error 2 in copypath' unless File.exist?(ret) ret end |