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
factorylabs-fdlcap-0.2.0 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.2.1 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.2.2 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.2.3 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.2.4 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.2.5 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.2.6 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.2.7 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.0 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.1 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.10 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.11 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.15 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.16 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.17 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.18 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.19 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.2 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.20 lib/fdlcap/recipes/deploy.rb
factorylabs-fdlcap-0.3.21 lib/fdlcap/recipes/deploy.rb