Class: AwsDeploy::NotificationsController

Inherits:
AwsDeployApplicationController show all
Defined in:
app/controllers/aws_deploy/notifications_controller.rb

Instance Method Summary collapse

Methods inherited from AwsDeployApplicationController

#_aws_access_key_id, #_aws_bucket, #_aws_secret_access_key, #_exist_config?, #_md5_file, #_zip_file, #authenticate, #aws_secret?

Instance Method Details

#indexObject



4
5
# File 'app/controllers/aws_deploy/notifications_controller.rb', line 4

def index
end

#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