Sha256: d403c53c25ee68137dbd22c77f03c897210c6cbf48ac92291548abc55eacca1e
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 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 if exists?(:perform_cleanup) after "deploy", "deploy:cleanup" after "deploy:migrations" , "deploy:cleanup" after "deploy:long" , "deploy:cleanup" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factorylabs-fdlcap-0.1.0 | lib/fdlcap/deploy.rb |