Class: Capistrano::Slacky::Facade::Body

Inherits:
Block::Section show all
Defined in:
lib/capistrano/slacky/facade/body.rb

Instance Method Summary collapse

Methods inherited from Block::Section

#as_json

Constructor Details

#initialize(env:) ⇒ Body

Returns a new instance of Body.



7
8
9
10
11
12
13
14
15
# File 'lib/capistrano/slacky/facade/body.rb', line 7

def initialize(env:)
  @env = env

  super(
    ::I18n.t("slacky.stage", scope: "capistrano"), "`#{stage}`",
    ::I18n.t("slacky.branch", scope: "capistrano"), "`#{branch}`",
    ::I18n.t("slacky.duration", scope: "capistrano"), "`#{duration}`",
  )
end