Use the nodenv layout instead of the old nvm one

This commit is contained in:
Pierre Dulac 2014-03-14 01:11:13 +01:00
parent 4e1adf3fa4
commit 4ccf33b85e

View file

@ -88,11 +88,13 @@ end
# Sync NVM nodes.
Dir.chdir "#{config.homedir}/nvm" do
Dir["v*"].each do |dir|
Dir.chdir "#{config.homedir}/nodenv/versions" do
Dir["*"].each do |dir|
next if File.symlink? dir
version = File.basename dir
file = "nvm/#{os}/#{version}.tar.bz2"
temp = Tempfile.new "nvm"
file = "nodenv/#{os}/#{version}.tar.bz2"
temp = Tempfile.new "nodenv"
obj = bucket.objects[file]
next if obj.exists?