lib/capitate/plugins/prompt.rb in capitate-0.2.11 vs lib/capitate/plugins/prompt.rb in capitate-0.2.13
- old
+ new
@@ -14,15 +14,17 @@
# Prompt for password.
#
# ==== Options
# +label+:: Label
- # +options+:: Options
- # - +verify+:: If true, prompt twice and verify
- # - +lazy+:: If true, returns a Proc. _Defaults to true_
- # - +check_hash+:: If present, checks that md5 is same as password md5
+ # +options+:: Options (see Password options)
#
+ # ==== Password options
+ # +verify+:: If true, prompt twice and verify
+ # +lazy+:: If true, returns a Proc. _Defaults to true_
+ # +check_hash+:: If present, checks that md5 is same as password md5
+ #
def password(label, options = {})
verify = options[:verify]
lazy = options[:lazy].nil? ? true : options[:lazy]
check_hash = options[:check_hash]
@@ -64,13 +66,9 @@
}
return password_prompt if lazy
password_prompt.call
end
-
- def check_password_hash(password, hash)
- MD5.md5()
- end
end
Capistrano.plugin :prompt, Capitate::Plugins::Prompt