Module: EmailNotifications

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

Overview

Copyright © 2012 Sean Laurent

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#email_notificationsObject (readonly)

Returns the value of attribute email_notifications.



5
6
7
# File 'lib/ec2launcher/email_notification.rb', line 5

def email_notifications
  @email_notifications
end

Instance Method Details

#email_notification(&block) ⇒ Object



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

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