Sha256: bf3da2c7a7d6f2c21eafc346c4841c51956e4c11374753580ca9ab7809f76da4

Contents?: true

Size: 546 Bytes

Versions: 10

Compression:

Stored size: 546 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  # Deploy the custom maintenance page
  define_recipe :custom_maintenance_page do
    
    # Callbacks
    before "deploy:web:disable",      "slice:copy_maintenance_page"
    
    # Tasks
    namespace :slice do
      desc "Copy the maintenance page from the public directory to the shared directory"
      task :copy_maintenance_page, :roles => :app do
        upload "public/maintenance.html","#{shared_path}/system/maintenance.html.custom", :via => :scp
      end
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fdlcap-0.4.17 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.15 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.14 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.13 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.12 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.11 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.10 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.9 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.7 lib/fdlcap/recipes/custom_maintenance_page.rb
fdlcap-0.4.6 lib/fdlcap/recipes/custom_maintenance_page.rb