mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-23 13:57:52 +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 'yaml'
|
||||||
|
|
||||||
require "#{APP_ROOT}/MPW/MPW"
|
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
|
class Cli
|
||||||
|
|
||||||
|
@ -30,10 +27,13 @@ class Cli
|
||||||
if !defined?(@sync)
|
if !defined?(@sync)
|
||||||
case @config.sync_type
|
case @config.sync_type
|
||||||
when 'mpw'
|
when 'mpw'
|
||||||
|
require "#{APP_ROOT}/MPW/Sync/MPWSync"
|
||||||
@sync = MPW::Sync::MPWSync.new
|
@sync = MPW::Sync::MPWSync.new
|
||||||
when 'sftp', 'scp', 'ssh'
|
when 'sftp', 'scp', 'ssh'
|
||||||
|
require "#{APP_ROOT}/MPW/Sync/SSH"
|
||||||
@sync = MPW::Sync::SSH.new
|
@sync = MPW::Sync::SSH.new
|
||||||
when 'ftp'
|
when 'ftp'
|
||||||
|
require "#{APP_ROOT}/MPW/Sync/FTP"
|
||||||
@sync = MPW::Sync::FTP.new
|
@sync = MPW::Sync::FTP.new
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue