Sha256: 2555dfd0a1d7fd4db87f4434eedbcf5ac22178080d11f6e49919fef6c85e973e

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do

  namespace :juggernaut do
    desc "After update_code you want to symlink the juggernaut.yml file into place"
    task :symlink_configs, :roles => :app, :except => {:no_release => true} do
      run <<-CMD
        cd #{release_path} &&
        ln -nfs #{shared_path}/config/juggernaut.yml #{release_path}/config/juggernaut.yml
      CMD
    end
    [:start,:stop,:restart].each do |op|
      desc "#{op} juggernaut server"
      task op, :roles => :app, :except => {:no_release => true} do
        sudo "/usr/bin/monit #{op} all -g juggernaut_#{application}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
engineyard-eycap-0.3.3 lib/eycap/recipes/juggernaut.rb