Skip to content

Instantly share code, notes, and snippets.

@jrgifford
Forked from exAspArk/friday_deploy_cap2.rb
Created January 22, 2016 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrgifford/a97bbf4a11c4d07445d6 to your computer and use it in GitHub Desktop.
Save jrgifford/a97bbf4a11c4d07445d6 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