# 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
# 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