class Capistrano::Slacky::Facade::Header

Constants

DEPLOYED_SUCCESSFULLY
DEPLOYMENT_FAILED
EMOJI_MAP
REVERTED_SUCCESSFULLY
ROLLBACK_FAILED

Public Class Methods

new(text) click to toggle source
Calls superclass method Capistrano::Slacky::Block::Header::new
# File lib/capistrano/slacky/facade/header.rb, line 41
def initialize(text)
  super(::I18n.t("slacky.#{text}", scope: "capistrano", emoji: EMOJI_MAP.fetch(text).sample))
end