unstable: fix sync via ssh

This commit is contained in:
nishiki 2015-02-08 20:56:39 +01:00
parent 40240934c5
commit 75a8348086
5 changed files with 151 additions and 182 deletions
lib/UI

View file

@ -25,13 +25,13 @@ class Cli
# Sync the data with the server
# @rtnr: true if the synchro is finish
def sync
@sync = MPW::Sync.new(@config, @password, @mpw.list)
@sync = MPW::Sync.new(@config, @mpw, @password)
raise(@sync.error_msg) if not @sync.get_remote
raise(@sync.error_msg) if not @sync.sync
return true
rescue Exception => e
# rescue Exception => e
puts "#{I18n.t('display.error')} #7: #{e}".red
return false
end