Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Commit 5074849

Browse files
author
David Hollinger
committed
Replace notify_slack calls in generate_types method
1 parent f2d369e commit 5074849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/helpers/tasks.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ def generate_types(environment)
5858
message = run_command(command)
5959
LOGGER.info("message: #{message} environment: #{environment}")
6060
status_message = { status: :success, message: message.to_s, environment: environment, status_code: 200 }
61-
notify_slack(status_message) if slack?
61+
notification(status_message)
6262
rescue StandardError => e
6363
LOGGER.error("message: #{e.message} trace: #{e.backtrace}")
6464
status_message = { status: :fail, message: e.message, trace: e.backtrace, environment: environment, status_code: 500 }
65-
notify_slack(status_message) if slack?
65+
notification(status_message)
6666
end
6767

6868
def notification(message)

0 commit comments

Comments
 (0)