aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-11-25 19:29:46 -0500
committerGeorge Claghorn <george@basecamp.com>2018-11-25 19:29:46 -0500
commit5ae21598731a8a539c025d2c57576ab44148c3fb (patch)
tree21cd46a8f27b2bf596762422722f48ba87b276ca /lib
parent43801f6a3b2fd4539a1d4fc2689e68c12718b515 (diff)
downloadrails-5ae21598731a8a539c025d2c57576ab44148c3fb.tar.gz
rails-5ae21598731a8a539c025d2c57576ab44148c3fb.tar.bz2
rails-5ae21598731a8a539c025d2c57576ab44148c3fb.zip
Fix printing
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/ingress.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/ingress.rake b/lib/tasks/ingress.rake
index f357f098ab..3f57b79caa 100644
--- a/lib/tasks/ingress.rake
+++ b/lib/tasks/ingress.rake
@@ -11,13 +11,13 @@ namespace :action_mailbox do
url, password, user_agent = ENV.values_at("URL", "INGRESS_PASSWORD", "USER_AGENT")
if url.blank? || password.blank?
- echo "4.3.5 URL and INGRESS_PASSWORD are required"
+ 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|
- echo result.output
+ print result.output
exit result.success? ? 0 : 1
end
end