Add ndenv

Wed, 21 Oct 2015 18:27:32 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 21 Oct 2015 18:27:32 -0400
changeset 213
859dd4b440d8
parent 212
36642e1d867a
child 214
905d1a64c485

Add ndenv

.homedir-setup.rb file | annotate | diff | comparison | revisions
--- a/.homedir-setup.rb
+++ b/.homedir-setup.rb
@@ -99,6 +99,21 @@ def setup
     end
   # }}}
 
+
+  # ndenv {{{
+    if Dir.exists?('.ndenv')
+      puts "ndenv already installed"
+    else
+      puts "Installing ndenv..."
+
+      do_cmds \
+        'git clone https://github.com/riywo/ndenv.git .ndenv',
+        'git clone https://github.com/riywo/node-build.git .ndenv/plugins/node-build'
+
+    end
+  # }}}
+
+
 end
 
 def update
@@ -109,6 +124,8 @@ def update
     '.plenv/plugins/perl-build',
     '.rbenv',
     '.rbenv/plugins/ruby-build',
+    '.ndenv',
+    '.ndenv/plugins/node-build',
   ].each do |dir|
     do_cmds \
       "cd ~/#{dir} && git pull origin master"

mercurial