Sha256: 7f84fc6ea8c68dfe7c7fe161a0b08abd567fd9873a2b59d7453b0703aad9fd7d

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

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

  # Override default start/stop/restart tasks for Passenger
  namespace :deploy do
    desc <<-DESC
      Overrides the default Capistrano deploy:start.
    DESC
    task :start, :roles => :web do
      run "touch #{current_release}/tmp/restart.txt"
    end
    
    desc <<-DESC
      Overrides the default Capistrano deploy:stop.
    DESC
    task :stop, :roles => :web do
      # Do nothing, 
    end
    
    desc <<-DESC
      Overrides the default Capistrano deploy:restart.
    DESC
    task :restart, :roles => :web do
      run "touch #{current_release}/tmp/restart.txt"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pauldowman-ec2onrails-0.9.10.0 lib/ec2onrails/recipes/deploy.rb