mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-23 22:03:05 +00:00
remove debug puts
This commit is contained in:
parent
e0c1f1bfc1
commit
1298caed2e
2 changed files with 0 additions and 2 deletions
|
@ -47,7 +47,6 @@ class Cli
|
||||||
@mpw.sync(@sync.get(@passwd), @config.last_update)
|
@mpw.sync(@sync.get(@passwd), @config.last_update)
|
||||||
@sync.update(File.open(@config.file_gpg).read)
|
@sync.update(File.open(@config.file_gpg).read)
|
||||||
@config.setLastUpdate()
|
@config.setLastUpdate()
|
||||||
puts @sync.error_msg
|
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
puts "#{I18n.t('cli.sync.error')}:\n#{e}"
|
puts "#{I18n.t('cli.sync.error')}:\n#{e}"
|
||||||
end
|
end
|
||||||
|
|
|
@ -63,7 +63,6 @@ class Sync
|
||||||
@socket.puts send_msg.to_json
|
@socket.puts send_msg.to_json
|
||||||
msg = JSON.parse(@socket.gets)
|
msg = JSON.parse(@socket.gets)
|
||||||
|
|
||||||
puts msg
|
|
||||||
case msg['error']
|
case msg['error']
|
||||||
when nil, 'file_not_exist'
|
when nil, 'file_not_exist'
|
||||||
tmp_file = "/tmp/mpw-#{MPW.generatePassword()}.gpg"
|
tmp_file = "/tmp/mpw-#{MPW.generatePassword()}.gpg"
|
||||||
|
|
Loading…
Reference in a new issue