1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-03-20 05:14:36 +00:00
This commit is contained in:
Adrien Waksberg 2015-01-27 09:37:53 +01:00
parent a49c975f19
commit 271138ae80

View file

@ -256,14 +256,14 @@ class Cli
if not row.empty? if not row.empty?
puts I18n.t('form.update.title') puts I18n.t('form.update.title')
puts '--------------------' puts '--------------------'
name = ask(I18n.t('form.update.name' , name: row[:name])).to_s name = ask(I18n.t('form.update.name' , name: row['name'])).to_s
group = ask(I18n.t('form.update.group' , group: row[:group])).to_s group = ask(I18n.t('form.update.group' , group: row['group'])).to_s
server = ask(I18n.t('form.update.server' , server: row[:host])).to_s server = ask(I18n.t('form.update.server' , server: row['host'])).to_s
protocol = ask(I18n.t('form.update.protocol', protocol: row[:protocol])).to_s protocol = ask(I18n.t('form.update.protocol', protocol: row['protocol'])).to_s
login = ask(I18n.t('form.update.login' , login: row[:login])).to_s login = ask(I18n.t('form.update.login' , login: row['login'])).to_s
passwd = ask(I18n.t('form.update.password')).to_s passwd = ask(I18n.t('form.update.password')).to_s
port = ask(I18n.t('form.update.port' , port: row[:port])).to_s port = ask(I18n.t('form.update.port' , port: row['port'])).to_s
comment = ask(I18n.t('form.update.comment' , comment: row[:comment])).to_s comment = ask(I18n.t('form.update.comment' , comment: row['comment'])).to_s
if @mpw.update(name, group, server, protocol, login, passwd, port, comment, id) if @mpw.update(name, group, server, protocol, login, passwd, port, comment, id)
if @mpw.encrypt if @mpw.encrypt