mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
remove puts
This commit is contained in:
parent
1f4509597b
commit
e22ebecf36
2 changed files with 0 additions and 3 deletions
|
@ -159,7 +159,6 @@ module MPW
|
||||||
|
|
||||||
return true
|
return true
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
puts e
|
|
||||||
@error_msg = "#{I18n.t('error.config.check')}\n#{e}"
|
@error_msg = "#{I18n.t('error.config.check')}\n#{e}"
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,8 +48,6 @@ module MPW
|
||||||
def get(file_tmp)
|
def get(file_tmp)
|
||||||
return false if not @enable
|
return false if not @enable
|
||||||
|
|
||||||
puts @path
|
|
||||||
puts file_tmp
|
|
||||||
Net::SFTP.start(@host, @user, password: @password, port: @port) do |sftp|
|
Net::SFTP.start(@host, @user, password: @password, port: @port) do |sftp|
|
||||||
sftp.lstat(@path) do |response|
|
sftp.lstat(@path) do |response|
|
||||||
sftp.download!(@path, file_tmp) if response.ok?
|
sftp.download!(@path, file_tmp) if response.ok?
|
||||||
|
|
Loading…
Reference in a new issue