-
-
Save jrgifford/a97bbf4a11c4d07445d6 to your computer and use it in GitHub Desktop.
Friday deploy script for Capistrano
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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