From 8cce327878054242d554a7168fd0a084821ea083 Mon Sep 17 00:00:00 2001 From: Yuji Hanamura Date: Tue, 6 Dec 2022 12:06:17 +0900 Subject: [PATCH] Fix deprecation warning of thor ``` Deprecation warning: Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `Ec2ssh::CLI` You can silence deprecations warning by setting the environment variable THOR_SILENCE_DEPRECATION. ``` --- lib/ec2ssh/cli.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ec2ssh/cli.rb b/lib/ec2ssh/cli.rb index adee03a..97c16c0 100644 --- a/lib/ec2ssh/cli.rb +++ b/lib/ec2ssh/cli.rb @@ -114,5 +114,9 @@ def hl end end end + + def self.exit_on_failure? + false + end end end