Skip to content

Commit

Permalink
Rename install/remove_maintenance_page -> enable/disable_...
Browse files Browse the repository at this point in the history
  • Loading branch information
martinemde authored and smerritt committed Jun 10, 2010
1 parent 610c3ee commit 6f96588
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/ey-deploy/deploy.rb
Expand Up @@ -28,7 +28,7 @@ def deploy
puts "~> finalizing deploy"
end

def install_maintenance_page
def enable_maintenance_page
if c.migrate? || c.stack == "nginx_mongrel"
# put in the maintenance page
maintenance_file = ["public/maintenance.html.custom", "public/maintenance.html.tmp", "public/maintenance.html", "public/system/maintenance.html.default"].detect do |file|
Expand All @@ -43,7 +43,7 @@ def install_maintenance_page
end
end

def remove_maintenance_page
def disable_maintenance_page
roles :app_master, :app, :solo do
run "rm -f #{File.join(c.shared_path, "system", "maintenance.html")}"
end
Expand Down
8 changes: 4 additions & 4 deletions spec/custom_deploy_spec.rb
Expand Up @@ -27,8 +27,8 @@ def migrate() @call_order << 'migrate' end
def symlink() @call_order << 'symlink' end
def restart() @call_order << 'restart' end
def cleanup() @call_order << 'cleanup' end
def install_maintenance_page() @call_order << 'install_maintenance_page' end
def remove_maintenance_page() @call_order << 'remove_maintenance_page' end
def enable_maintenance_page() @call_order << 'enable_maintenance_page' end
def disable_maintenance_page() @call_order << 'disable_maintenance_page' end
end

td = TestDeploy.new(EY::Deploy::Configuration.new)
Expand All @@ -39,11 +39,11 @@ def remove_maintenance_page() @call_order << 'remove_maintenance_page' end
create_revision_file
bundle
symlink_configs
install_maintenance_page
enable_maintenance_page
migrate
symlink
restart
remove_maintenance_page
disable_maintenance_page
cleanup)
end

Expand Down

0 comments on commit 6f96588

Please sign in to comment.