Sha256: da84b06d4ec471581ce687d6c21bb793d80222361a18474ff2105467cdd6109d

Contents?: true

Size: 1.08 KB

Versions: 18

Compression:

Stored size: 1.08 KB

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :mongrel do
    desc <<-DESC
    Start Mongrel processes on the app server.  This uses the :use_sudo variable to determine whether to use sudo or not. By default, :use_sudo is
    set to true.
    DESC
    task :start, :roles => [:app], :except => {:mongrel => false} do
      sudo "/usr/bin/monit start all -g #{monit_group}"
    end

    desc <<-DESC
    Restart the Mongrel processes on the app server by starting and stopping the cluster. This uses the :use_sudo
    variable to determine whether to use sudo or not. By default, :use_sudo is set to true.
    DESC
    task :restart, :roles => [:app], :except => {:mongrel => false} do
      sudo "/usr/bin/monit restart all -g #{monit_group}"
    end

    desc <<-DESC
    Stop the Mongrel processes on the app server.  This uses the :use_sudo
    variable to determine whether to use sudo or not. By default, :use_sudo is
    set to true.
    DESC
    task :stop, :roles => [:app], :except => {:mongrel => false} do
      sudo "/usr/bin/monit stop all -g #{monit_group}"
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
engineyard-eycap-0.3.10 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.3.11 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.3.9 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.0 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.1 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.10 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.11 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.12 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.2 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.3 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.4 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.5 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.6 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.7 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.4.9 lib/eycap/recipes/mongrel.rb
gramos-robbie-0.0.1 lib/robbie/recipes/mongrel.rb
gramos-robbie-0.0.2 lib/robbie/recipes/mongrel.rb
squirrel-eycap-0.4.10 lib/eycap/recipes/mongrel.rb