Sha256: b4f8fd9fcaad65d93c20562a651b338666a52c8349c5664add86bf103d2ab2b6

Contents?: true

Size: 790 Bytes

Versions: 17

Compression:

Stored size: 790 Bytes

Contents

namespace :deploy do

  namespace :check do

    # Check the nodejs runtime
    task :nodejs do
      on roles(:all) do |host|
        # centos responds to node
        if test("[ $(which nodejs || which node ) ]")
          info "Javascript runtime nodejs is available on #{host}"
        else
          error "Javascript runtime nodejs is not available on #{host}"
        end
      end
    end
    after 'deploy:check', 'deploy:check:nodejs'

    task :imagemagick do
      on roles(:all) do |host|
        if test("[ $(which identify) ]")
          info "Javascript runtime nodejs is available on #{host}"
        else
          error "Javascript runtime nodejs is not available on #{host}"
        end
      end
    end
    after 'deploy:check', 'deploy:check:imagemagick'

  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
j-cap-recipes-0.0.18 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.17 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.16 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.15 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.14 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.13 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.12 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.11 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.10 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.9 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.8 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.7 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.5 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.4 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.3 lib/j-cap-recipes/tasks/check.rake
j-cap-recipes-0.0.2 lib/capistrano-recipes/tasks/check.rake
j-cap-recipes-0.0.1 lib/capistrano-recipes/tasks/check.rake