Method: Node::Compiler#init_tmpdir
- Defined in:
- lib/node/compiler.rb
#init_tmpdir ⇒ Object
90 91 92 93 94 95 96 97 |
# File 'lib/node/compiler.rb', line 90 def init_tmpdir if @options[:tmpdir].include? @project_root raise Error, "tmpdir #{@options[:tmpdir]} cannot reside inside the project root #{@project_root}." end Utils.prepare_tmpdir(@options[:tmpdir]) @vendor_node = File.join(@options[:tmpdir], 'node') end |