Module: EC2Launcher::DSL::EmailNotifications

Included in:
Application, Environment
Defined in:
lib/ec2launcher/dsl/email_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#email_notificationsObject (readonly)

Returns the value of attribute email_notifications.



8
9
10
# File 'lib/ec2launcher/dsl/email_notification.rb', line 8

def email_notifications
  @email_notifications
end

Instance Method Details

#email_notification(&block) ⇒ Object



10
11
12
13
14
# File 'lib/ec2launcher/dsl/email_notification.rb', line 10

def email_notification(&block)
  notifications = EC2Launcher::DSL::EmailNotification.new
  notifications.instance_exec(&block)
  @email_notifications = notifications
end