Created
June 8, 2015 13:00
-
-
Save benevolent0505/b6549f3ac13788cc6a1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute 'install nodebrew' do | |
command 'curl -L git.io/nodebrew | perl - setup' | |
not_if 'nodebrew help' | |
end | |
execute 'add path' do | |
command %Q(export PATH=$HOME/.nodebrew/current/bin:$PATH) | |
not_if 'cat ~/.bashrc | grep nodebrew' | |
end | |
execute 'source .bashrc' do | |
command '. ~/.bashrc' | |
end | |
execute 'install nodejs' do | |
command 'nodebrew install-binary latest' | |
not_if 'node -v' | |
end | |
execute 'use nodejs' do | |
command 'nodebrew use latest' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment