Module: Capnotify::Plugin::Overview
- Defined in:
- lib/capnotify/plugin/overview.rb
Constant Summary collapse
- PLUGIN_NAME =
:capnotify_overview
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/capnotify/plugin/overview.rb', line 7 def init capnotify.components << Capnotify::Component.new(PLUGIN_NAME) do |c| c.header = 'Deployment Overview' c.content = {} c.content['Deployed by'] = capnotify.deployed_by c.content['Deployed at'] = Time.now c.content['Application'] = fetch(:application, 'n/a') c.content['Repository'] = fetch(:repository, 'n/a') end end |
#unload ⇒ Object
19 20 21 |
# File 'lib/capnotify/plugin/overview.rb', line 19 def unload capnotify.delete_component PLUGIN_NAME end |