Skip to content

Instantly share code, notes, and snippets.

@jeffdevine
Last active March 9, 2023 19:31
Show Gist options
  • Save jeffdevine/13224c2bdf4a24c7125d to your computer and use it in GitHub Desktop.
Save jeffdevine/13224c2bdf4a24c7125d to your computer and use it in GitHub Desktop.
Friday Deploy for Capistrano 2.x
before 'deploy', 'deploy:good_luck'
before 'deploy:migration', 'deploy:good_luck'
task :good_luck, roles: :app, except: { no_release: true } do
if Time.now.wday == 5
logger.debug('')
logger.debug('┓┏┓┏┓┃')
logger.debug('┛┗┛┗┛┃\○/')
logger.debug('┓┏┓┏┓┃ / Friday')
logger.debug('┛┗┛┗┛┃ノ)')
logger.debug('┓┏┓┏┓┃ deploy,')
logger.debug('┛┗┛┗┛┃')
logger.debug('┓┏┓┏┓┃ good')
logger.debug('┛┗┛┗┛┃')
logger.debug('┓┏┓┏┓┃ luck!')
logger.debug('┃┃┃┃┃┃')
logger.debug('┻┻┻┻┻┻')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment