Sha256: b866fc027733bbff9ac56042e39f7e025d356f356b60515b1ad6b7ee6fce92e6

Contents?: true

Size: 1009 Bytes

Versions: 6

Compression:

Stored size: 1009 Bytes

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 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 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 do
      sudo "/usr/bin/monit stop all -g #{monit_group}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
engineyard-eycap-0.3.3 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.3.4 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.3.5 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.3.6.1 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.3.6 lib/eycap/recipes/mongrel.rb
engineyard-eycap-0.3.7 lib/eycap/recipes/mongrel.rb