From 84ff0e8ae26679fb9559fbb590446356e07957c7 Mon Sep 17 00:00:00 2001 From: nishiki <nishiki@yaegashi.fr> Date: Sun, 15 May 2016 23:22:55 +0200 Subject: [PATCH] fix comments --- lib/mpw/sync/ssh.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/mpw/sync/ssh.rb b/lib/mpw/sync/ssh.rb index 89a7fd5..45dae3a 100644 --- a/lib/mpw/sync/ssh.rb +++ b/lib/mpw/sync/ssh.rb @@ -20,7 +20,6 @@ class SyncSSH end # Connect to server - # @rtrn: false if the connection fail def connect Net::SSH.start(@host, @user, password: @password, port: @port) do break @@ -30,8 +29,7 @@ class SyncSSH end # Get data on server - # @args: gpg_password -> the gpg password - # @rtrn: nil if nothing data or error + # @args: file_tmp -> the path where download the file def get(file_tmp) Net::SFTP.start(@host, @user, password: @password, port: @port) do |sftp| sftp.lstat(@path) do |response| @@ -44,7 +42,6 @@ class SyncSSH # Update the remote data # @args: file_gpg -> the data to send on server - # @rtrn: false if there is a problem def update(file_gpg) Net::SFTP.start(@host, @user, password: @password, port: @port) do |sftp| sftp.upload!(file_gpg, @path) @@ -52,6 +49,5 @@ class SyncSSH rescue Exception => e raise "#{I18n.t('error.sync.upload')}\n#{e}" end - end end