aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/ingress.rake
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-11-25 21:35:27 -0500
committerGeorge Claghorn <george@basecamp.com>2018-11-25 21:53:22 -0500
commitdcea1b18dae59a371ef8ac32b4874f3daf748001 (patch)
tree202d24821ffc0db43fe729e1fe60c78227b418e1 /lib/tasks/ingress.rake
parent5ae21598731a8a539c025d2c57576ab44148c3fb (diff)
downloadrails-dcea1b18dae59a371ef8ac32b4874f3daf748001.tar.gz
rails-dcea1b18dae59a371ef8ac32b4874f3daf748001.tar.bz2
rails-dcea1b18dae59a371ef8ac32b4874f3daf748001.zip
YAGNI user agent customization
Diffstat (limited to 'lib/tasks/ingress.rake')
-rw-r--r--lib/tasks/ingress.rake11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/tasks/ingress.rake b/lib/tasks/ingress.rake
index 3f57b79caa..1253f94f71 100644
--- a/lib/tasks/ingress.rake
+++ b/lib/tasks/ingress.rake
@@ -8,18 +8,17 @@ namespace :action_mailbox do
require "active_support/core_ext/object/blank"
require "action_mailbox/postfix_relayer"
- url, password, user_agent = ENV.values_at("URL", "INGRESS_PASSWORD", "USER_AGENT")
+ url, password = ENV.values_at("URL", "INGRESS_PASSWORD")
if url.blank? || password.blank?
print "4.3.5 URL and INGRESS_PASSWORD are required"
exit 1
end
- ActionMailbox::PostfixRelayer.new(url: url, password: password, user_agent: user_agent)
- .relay(STDIN.read).tap do |result|
- print result.output
- exit result.success? ? 0 : 1
- end
+ ActionMailbox::PostfixRelayer.new(url: url, password: password).relay(STDIN.read).tap do |result|
+ print result.output
+ exit result.success? ? 0 : 1
+ end
end
end
end