Sha256: 127e234af3590cda89cb184bf0c59238ac71a090fb3c53bb3c6a1b2782ebc29f
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
module Capitate::Plugins::Prompt def ask(label, &block) Capistrano::CLI.ui.ask(label, &block) end def password(label, verify = false) # Lazy Proc.new { password = Capistrano::CLI.password_prompt(label) if verify password_verify = Capistrano::CLI.password_prompt("[Verify] #{label}") raise "Passwords do not match" if password != password_verify end password } end end Capistrano.plugin :prompt, Capitate::Plugins::Prompt
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.2.1 | lib/capitate/plugins/prompt.rb |