Skip to content
Browse files

do not prompt user for password, when they opt not to provide one it …

…is usually because keys are being used, instead
  • Loading branch information...
1 parent f5a064c commit ee2393871371653c106b76cf871ece5e075d1d49 @mikesmullin mikesmullin committed May 6, 2012
Showing with 10 additions and 9 deletions.
  1. +10 −9 lib/roundsman/capistrano.rb
View
19 lib/roundsman/capistrano.rb
@@ -239,15 +239,16 @@ def remove_procs_from_hash(hash)
new_hash = {}
hash.each do |key, value|
real_value = if value.respond_to?(:call)
- begin
- value.call
- rescue ::Capistrano::CommandError => e
- logger.debug "Could not get the value of #{key}: #{e.message}"
- nil
- end
- else
- value
- end
+ next if key == :password # do not prompt user for password, when they opt not to provide one it is usually because keys are being used, instead
+ begin
+ value.call
+ rescue ::Capistrano::CommandError => e
+ logger.debug "Could not get the value of #{key}: #{e.message}"
+ nil
+ end
+ else
+ value
+ end
if real_value.is_a?(Hash)
real_value = remove_procs_from_hash(real_value)

0 comments on commit ee23938

Please sign in to comment.
Something went wrong with that request. Please try again.