Sha256: 792e6f6ad5294c98bf2dbed3cd3b6d1077b3a51b4b5e9b817270a58c7d8750a9

Contents?: true

Size: 655 Bytes

Versions: 8

Compression:

Stored size: 655 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do

  # 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

8 entries across 8 versions & 5 rubygems

Version Path
ewoutvonk-ec2onrails-0.9.10.4.001 lib/ec2onrails/recipes/deploy.rb
gigpark-ec2onrails-0.9.10.3 lib/ec2onrails/recipes/deploy.rb
pauldowman-ec2onrails-0.9.10.1 lib/ec2onrails/recipes/deploy.rb
pauldowman-ec2onrails-0.9.10.2 lib/ec2onrails/recipes/deploy.rb
pauldowman-ec2onrails-0.9.10.3 lib/ec2onrails/recipes/deploy.rb
pauldowman-ec2onrails-0.9.10.4 lib/ec2onrails/recipes/deploy.rb
ec2onrails-multiapp-0.9.11 lib/ec2onrails/recipes/deploy.rb
ec2onrails-experimental-0.9.11 lib/ec2onrails/recipes/deploy.rb