Last active
November 14, 2020 23:13
-
-
Save exAspArk/4f18795bc89b6e2666ee 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 |
But overall great thanks. Finally something useful from open-source.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in the beginning of each file
See more details here:
http://stackoverflow.com/questions/3678172/ruby-1-9-invalid-multibyte-char-us-ascii