Sha256: 8c156e489fb483d8dc7afdc2821f11df9563858f028dd171cd4240a5b47dddbe

Contents?: true

Size: 720 Bytes

Versions: 3

Compression:

Stored size: 720 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  cfg = ec2onrails_config

  # override default start/stop/restart tasks to use god
  namespace :deploy do
    desc <<-DESC
      Overrides the default Capistrano deploy:start, uses \
      'god start app'
    DESC
    task :start, :roles => :app do
      sudo "god start app"
    end
    
    desc <<-DESC
      Overrides the default Capistrano deploy:stop, uses \
      'god stop app'
    DESC
    task :stop, :roles => :app do
      sudo "god stop app"
    end
    
    desc <<-DESC
      Overrides the default Capistrano deploy:restart, uses \
      'god restart app'
    DESC
    task :restart, :roles => :app do
      sudo "god restart app"
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ScholarNexus-ec2onrails-0.9.10 lib/ec2onrails/recipes/deploy.rb
ScholarNexus-ec2onrails-0.9.11 lib/ec2onrails/recipes/deploy.rb
skippy-ec2onrails-0.9.11 lib/ec2onrails/recipes/deploy.rb