Skip to content

Commit

Permalink
node version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Aug 18, 2011
1 parent dc8e2f8 commit 16744e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cookbooks/node/recipes/default.rb
Expand Up @@ -3,6 +3,9 @@
# Recipe:: default
#
#
#
DEFAULT_NODE_VERSION = "v0.4.10"

root = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "homebrew"))

require root + '/resources/homebrew'
Expand All @@ -17,16 +20,16 @@
variables({ :home => ENV['HOME'] })
end

script "configuring nvm" do
script "configuring nvm and node #{DEFAULT_NODE_VERSION}" do
interpreter "bash"
code <<-EOS
source ~/.cinderella.profile
cd #{ENV['HOME']}/Developer
if [ ! -d ./.nvm ]; then
git clone git://github.com/creationix/nvm.git .nvm >> ~/.cinderella/node.log
source #{ENV['HOME']}/Developer/.nvm/nvm.sh >> ~/.cinderella/node.log
nvm install v0.4.10 >> ~/.cinderella/node.log
nvm alias default v0.4.10 >> ~/.cinderella/node.log
nvm install #{DEFAULT_NODE_VERSION} >> ~/.cinderella/node.log
nvm alias default #{DEFAULT_NODE_VERSION} >> ~/.cinderella/node.log
curl http://npmjs.org/install.sh | clean=yes sh >> ~/.cinderella/node.log
fi
EOS
Expand Down

0 comments on commit 16744e1

Please sign in to comment.