diff options
author | George Claghorn <george@basecamp.com> | 2018-11-08 07:30:37 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-11-08 07:30:37 -0500 |
commit | 5e1a67c67cbfdbec636b310793fe65be6e5bbb4b (patch) | |
tree | be0e9fe0f8b192cddaf0440e7fe181366e74d873 /lib | |
parent | 724c0a54660ec691aaf2aa5f46d78fb69f8ae362 (diff) | |
download | rails-5e1a67c67cbfdbec636b310793fe65be6e5bbb4b.tar.gz rails-5e1a67c67cbfdbec636b310793fe65be6e5bbb4b.tar.bz2 rails-5e1a67c67cbfdbec636b310793fe65be6e5bbb4b.zip |
Emit a transient error code for incorrect usage
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/ingress.rake | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/tasks/ingress.rake b/lib/tasks/ingress.rake index 510951aa2a..e86f95e859 100644 --- a/lib/tasks/ingress.rake +++ b/lib/tasks/ingress.rake @@ -8,12 +8,10 @@ namespace :action_mailbox do require "active_support/core_ext/object/blank" require "http" - unless url = ENV["URL"].presence - abort "5.3.5 URL is required" - end + url, password = ENV.values_at("URL", "INGRESS_PASSWORD") - unless password = ENV["INGRESS_PASSWORD"].presence - abort "5.3.5 INGRESS_PASSWORD is required" + if url.blank? || password.blank? + abort "4.3.5 URL and INGRESS_PASSWORD are required" end begin |