mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
fix bug, you can't install the ruby-net-scp
This commit is contained in:
parent
fe973c2fac
commit
64c0e7766f
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,6 @@ require 'i18n'
|
|||
require 'yaml'
|
||||
|
||||
require "#{APP_ROOT}/MPW/MPW"
|
||||
require "#{APP_ROOT}/MPW/Sync/MPWSync"
|
||||
require "#{APP_ROOT}/MPW/Sync/SSH"
|
||||
require "#{APP_ROOT}/MPW/Sync/FTP"
|
||||
|
||||
class Cli
|
||||
|
||||
|
@ -30,10 +27,13 @@ class Cli
|
|||
if !defined?(@sync)
|
||||
case @config.sync_type
|
||||
when 'mpw'
|
||||
require "#{APP_ROOT}/MPW/Sync/MPWSync"
|
||||
@sync = MPW::Sync::MPWSync.new
|
||||
when 'sftp', 'scp', 'ssh'
|
||||
require "#{APP_ROOT}/MPW/Sync/SSH"
|
||||
@sync = MPW::Sync::SSH.new
|
||||
when 'ftp'
|
||||
require "#{APP_ROOT}/MPW/Sync/FTP"
|
||||
@sync = MPW::Sync::FTP.new
|
||||
else
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue