Class: Capistrano::Slacky::Facade::Body
- Inherits:
-
Block::Section
- Object
- Block::Section
- Capistrano::Slacky::Facade::Body
- Defined in:
- lib/capistrano/slacky/facade/body.rb
Instance Method Summary collapse
-
#initialize(env:) ⇒ Body
constructor
A new instance of Body.
Methods inherited from Block::Section
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 |