Sha256: 28f2b5e09de2dd135876580ac284efe5330441787cc711ff0bd2d54e29c706de

Contents?: true

Size: 607 Bytes

Versions: 19

Compression:

Stored size: 607 Bytes

Contents

# encoding: utf-8
module MagicRecipes
  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

19 entries across 19 versions & 1 rubygems

Version Path
magic_recipes-0.0.19 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.18 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.17 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.16 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.15 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.14 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.13 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.12 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.11 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.10 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.9 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.8 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.7 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.6 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.5 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.4 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.3 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.2 lib/magic_recipes/nodejs.rb
magic_recipes-0.0.1 lib/magic_recipes/nodejs.rb