Class: AwsDeploy::NotificationsController
Instance Method Summary
collapse
#_aws_access_key_id, #_aws_bucket, #_aws_secret_access_key, #_exist_config?, #_md5_file, #_zip_file, #authenticate, #aws_secret?
Instance Method Details
#index ⇒ Object
4
5
|
# File 'app/controllers/aws_deploy/notifications_controller.rb', line 4
def index
end
|
#sendn ⇒ Object
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
|