Sha256: cbcd6595f47df79be1fdfe24d49952af310365ba8c281f300f6d1205ded8ba44

Contents?: true

Size: 848 Bytes

Versions: 55

Compression:

Stored size: 848 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  
  namespace :web do
    task :disable, :roles => :web, :except => { :no_release => true } do
      on_rollback { run "rm #{shared_path}/system/maintenance.html" }
      run "cp #{current_path}/public/maintenance.html #{shared_path}/system/maintenance.html"
    end
  end
  
  namespace :deploy do
    desc "Pull files from a remote server"
    task :download_file, :roles => :app, :except => { :no_release => true } do
      ENV['FILES'].split(',').each do |file|
        get "#{current_path}/#{file}", File.basename(file)
      end
    end
  end
  
  # Clean up old releases
  define_recipe :perform_cleanup do
    after "deploy",                   "deploy:cleanup"
    after "deploy:migrations" ,       "deploy:cleanup"
    after "deploy:long" ,             "deploy:cleanup"
  end
  
end

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
fdlcap-0.4.9 lib/fdlcap/recipes/deploy.rb
fdlcap-0.4.7 lib/fdlcap/recipes/deploy.rb
fdlcap-0.4.6 lib/fdlcap/recipes/deploy.rb
fdlcap-0.4.5 lib/fdlcap/recipes/deploy.rb
fdlcap-0.4.4 lib/fdlcap/recipes/deploy.rb
fdlcap-0.4.3 lib/fdlcap/recipes/deploy.rb
fdlcap-0.4.2 lib/fdlcap/recipes/deploy.rb
fdlcap-0.4.0 lib/fdlcap/recipes/deploy.rb
fdlcap-0.3.35 lib/fdlcap/recipes/deploy.rb
fdlcap-0.3.34 lib/fdlcap/recipes/deploy.rb
fdlcap-0.3.33 lib/fdlcap/recipes/deploy.rb
fdlcap-0.3.31 lib/fdlcap/recipes/deploy.rb
fdlcap-0.3.30 lib/fdlcap/recipes/deploy.rb
fdlcap-0.3.29 lib/fdlcap/recipes/deploy.rb
fdlcap-0.3.28 lib/fdlcap/recipes/deploy.rb