Class: Deployme::Notification

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/deployme/notification.rb

Class Method Summary collapse

Instance Method Summary collapse

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.options)
end

Class Method Details

.allObject



12
13
14
# File 'lib/deployme/notification.rb', line 12

def self.all
  Notifications.constants.map { |c| Notifications.const_get(c) }
end

.defaultsObject



8
9
10
# File 'lib/deployme/notification.rb', line 8

def self.defaults
  {}
end