lib/vidar/slack_notification.rb in vidar-1.4.3 vs lib/vidar/slack_notification.rb in vidar-1.5.0
- old
+ new
@@ -22,23 +22,23 @@
message = [
"Failed deploy of #{github_link} to #{deploy_link}.",
":fire: <!channel>",
build_link
]
- perform_with data(message: message, color: failure_color)
+ perform_with data(message:, color: failure_color)
end
def success
message = [
"Successful deploy of #{github_link} to #{deploy_link}.",
build_link
]
- perform_with data(message: message, color: success_color)
+ perform_with data(message:, color: success_color)
end
def deliver(message:, color: default_color)
- perform_with data(message: message, color: color)
+ perform_with data(message:, color:)
end
def perform_with(data)
connection.post do |req|
req.url webhook_url
@@ -59,11 +59,11 @@
{
attachments: [
{
title: github,
title_link: github_url,
- color: color,
- text: text,
+ color:,
+ text:,
fallback: text,
}
]
}
end