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

Commit

Permalink
Replace notify_slack calls in generate_types method
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hollinger committed May 1, 2018
1 parent f2d369e commit 5074849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/helpers/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def generate_types(environment)
message = run_command(command)
LOGGER.info("message: #{message} environment: #{environment}")
status_message = { status: :success, message: message.to_s, environment: environment, status_code: 200 }
notify_slack(status_message) if slack?
notification(status_message)
rescue StandardError => e
LOGGER.error("message: #{e.message} trace: #{e.backtrace}")
status_message = { status: :fail, message: e.message, trace: e.backtrace, environment: environment, status_code: 500 }
notify_slack(status_message) if slack?
notification(status_message)
end

def notification(message)
Expand Down

0 comments on commit 5074849

Please sign in to comment.