small refactoring the skype recipe

This commit is contained in:
Alexander Machehin 2014-03-06 21:50:58 +06:00
parent 2e4112e6a4
commit 31edf3e57c
1 changed files with 3 additions and 6 deletions

View File

@ -22,11 +22,9 @@ Capistrano::Configuration.instance(:must_exist).load do
end
on_rollback do
send("Cancelled deployment of #{deployment_name} to #{environment_string}.")
send('#'*60)
send("Cancelled deployment of #{deployment_name} to #{environment_string}.\n#{'#'*60}")
end
send('#'*60)
send("Deploying #{deployment_name} to #{environment_string}#{fetch(:skype_with_migrations, '')}.")
send("#{'#'*60}\nDeploying #{deployment_name} to #{environment_string}#{fetch(:skype_with_migrations, '')}.")
end
end
@ -38,8 +36,7 @@ Capistrano::Configuration.instance(:must_exist).load do
environment_string = "#{stage} (#{env})"
end
send("Finished deploying #{deployment_name} to #{environment_string}#{fetch(:skype_with_migrations, '')}.")
send('#'*60)
send("Finished deploying #{deployment_name} to #{environment_string}#{fetch(:skype_with_migrations, '')}.\n#{'#'*60}")
end
end