Skip to content

Instantly share code, notes, and snippets.

@hernandesbsousa
Forked from exAspArk/friday_deploy_cap2.rb
Last active August 28, 2015 20:49
Show Gist options
  • Save hernandesbsousa/a407cef08dde1758a2db to your computer and use it in GitHub Desktop.
Save hernandesbsousa/a407cef08dde1758a2db to your computer and use it in GitHub Desktop.
Friday deploy script for Capistrano
# Capistrano 2
before "deploy", "friday:good_luck"
namespace :friday do
friday_jumper = %{
┓┏┓┏┓┃
┛┗┛┗┛┃⟍ ○⟋
┓┏┓┏┓┃ ∕ Friday
┛┗┛┗┛┃ノ)
┓┏┓┏┓┃ deploy,
┛┗┛┗┛┃
┓┏┓┏┓┃ good
┛┗┛┗┛┃
┓┏┓┏┓┃ luck!
┃┃┃┃┃┃
┻┻┻┻┻┻
}.strip!
task :good_luck do
if Time.current.friday?
warn(friday_jumper)
end
end
end
# Capistrano 3
before "deploy:starting", "friday:good_luck"
namespace :friday do
friday_jumper = %{
┓┏┓┏┓┃
┛┗┛┗┛┃⟍ ○⟋
┓┏┓┏┓┃ ∕ Friday
┛┗┛┗┛┃ノ)
┓┏┓┏┓┃ deploy,
┛┗┛┗┛┃
┓┏┓┏┓┃ good
┛┗┛┗┛┃
┓┏┓┏┓┃ luck!
┃┃┃┃┃┃
┻┻┻┻┻┻
}.strip!
task :good_luck do
if Time.current.friday?
warn(friday_jumper.yellow)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment