1
0
Fork 0

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
1 changed files with 6 additions and 4 deletions

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?