Class: Deployme::Notification
- Inherits:
-
Object
- Object
- Deployme::Notification
- Extended by:
- Forwardable
- Defined in:
- lib/deployme/notification.rb
Direct Known Subclasses
Deployme::Notifications::Envfile, Deployme::Notifications::Github, Deployme::Notifications::Jira
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(deployment:, config:) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize(deployment:, config:) ⇒ Notification
Returns a new instance of Notification.
16 17 18 19 |
# File 'lib/deployme/notification.rb', line 16 def initialize(deployment:, config:) @deployment = deployment @settings = Settings.new(self.class, config, deployment.) end |
Class Method Details
.all ⇒ Object
12 13 14 |
# File 'lib/deployme/notification.rb', line 12 def self.all Notifications.constants.map { |c| Notifications.const_get(c) } end |
.defaults ⇒ Object
8 9 10 |
# File 'lib/deployme/notification.rb', line 8 def self.defaults {} end |