Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@igorshubovych

This comment has been minimized.

igorshubovych commented Jan 23, 2015

  1. You have to put
# encoding: utf-8

in the beginning of each file

See more details here:
http://stackoverflow.com/questions/3678172/ruby-1-9-invalid-multibyte-char-us-ascii

  1. Time.now instead of Time.current
@igorshubovych

This comment has been minimized.

igorshubovych commented Jan 23, 2015

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