Sha256: e9d899aadee9f4efc0846c28e97d66378e1a802cf36af83cdfed91096d68860d

Contents?: true

Size: 831 Bytes

Versions: 1

Compression:

Stored size: 831 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, :juggernaut], :except => {:no_release => true, :juggernaut => false} do
      run <<-CMD
        cd #{latest_release} &&
        ln -nfs #{shared_path}/config/juggernaut.yml #{latest_release}/config/juggernaut.yml &&
        ln -nfs #{shared_path}/config/juggernaut_hosts.yml #{latest_release}/config/juggernaut_hosts.yml
      CMD
    end
    [:start,:stop,:restart].each do |op|
      desc "#{op} juggernaut server"
      task op, :roles => [:app, :juggernaut], :except => {:no_release => true, :juggernaut => false} 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.8 lib/eycap/recipes/juggernaut.rb