Sha256: f1d790c1ec3e37ce406587326ba41d4777804a6ffc7eb60f8d264b2c41a07022

Contents?: true

Size: 720 Bytes

Versions: 27

Compression:

Stored size: 720 Bytes

Contents

# encoding: utf-8
module MagicRecipes
  # = RVM - Deploy-Recipes
  # 
  # == unused for now
  # 
  # [Tasks:]
  #   
  # 
  # [Callbacks:]
  #   
  # 
  module Nodejs
    def self.load_into(configuration)
      configuration.load do
        
        # code is taken from railscast #337
        
        namespace :nodejs do
          desc "Install the latest relase of Node.js"
          task :install, roles: :app do
            run "#{sudo} add-apt-repository ppa:chris-lea/node.js"
            run "#{sudo} apt-get -y update"
            run "#{sudo} apt-get -y install nodejs"
          end
          after "deploy:install", "nodejs:install"
        end
        
        # eof
        
      end
    end
  end
end


Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
magic_recipes-0.1.17 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.16 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.15 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.14 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.13 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.11 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.10 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.9 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.8 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.7 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.6 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.5 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.4 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.3 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.2 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.1 lib/magic_recipes/nodejs.rb
magic_recipes-0.1.0 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.29 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.28 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.27 lib/magic_recipes/nodejs.rb