From 293abdacdeadadbbd98783eafd41b2bacd4a8318 Mon Sep 17 00:00:00 2001 From: Mike Ballou Date: Thu, 19 Nov 2015 10:55:42 -0800 Subject: [PATCH] this is a fix for commit 813b171d2632f2b80b6bfa9b2b99bf3ebcf345a6 which broke the prompt_for_password method and resulted a nil password. --- lib/zanzibar.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/zanzibar.rb b/lib/zanzibar.rb index ae3e319..626cc11 100644 --- a/lib/zanzibar.rb +++ b/lib/zanzibar.rb @@ -66,8 +66,9 @@ module Zanzibar def prompt_for_password puts "Please enter password for #{@@username}:" - STDIN.noecho(&:gets).chomp - puts "Using password to login..." + STDIN.noecho(&:gets).chomp.tap do + puts "Using password to login..." + end end ## Gets the wsdl document location if none is provided in the constructor