Method: AwsDeploy::NotificationsController#sendn

Defined in:
app/controllers/aws_deploy/notifications_controller.rb

#sendnObject



10
11
12
13
14
15
16
17
18
# File 'app/controllers/aws_deploy/notifications_controller.rb', line 10

def sendn
  @errors = AwsDeploy::Notification.send("all", 
                                         "[TEST][aws_deploy] #{Rails.application.class.parent_name} #{Rails.env}", 
                                         "This is a test message sent from aws_deploy")

  flash[:message] = "Push sent! - #{Time.now.strftime('%Y/%m/%d %H:%M:%S')}"
  flash[:errors] = @errors
  redirect_to :action => :index
end