Sha256: eeeb01637c64fe13841e69dd67ce7be38360bd23ca4a8647e1f98dbeaf00aa6c
Contents?: true
Size: 946 Bytes
Versions: 1
Compression:
Stored size: 946 Bytes
Contents
namespace :rubber do namespace :node do rubber.allow_optional_tasks(self) after "rubber:install_packages", "rubber:node:custom_install" task :custom_install, :roles => :node do rubber.sudo_script 'install_node', <<-ENDSCRIPT # check if already exists if [ -x /usr/local/bin/node ] then echo 'Found node on installed on system' if /usr/local/bin/node --version | grep '#{rubber_env.node_version}' then echo 'Sphinx version matches, no further steps needed' exit 0 fi fi TMPDIR=`mktemp -d` || exit 1 cd $TMPDIR wget -qN http://nodejs.org/dist/node-v#{rubber_env.node_version}.tar.gz tar zxvf node-v#{rubber_env.node_version}.tar.gz cd node-v#{rubber_env.node_version} ./configure make make install cd ; rm -rf $TMPDIR ENDSCRIPT end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubber-jcarnegie-0.0.1 | generators/vulcanize/templates/node/config/rubber/deploy-node.rb |