mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
rename folder MPW to lib
This commit is contained in:
parent
e8590912a2
commit
5964044f78
11 changed files with 10 additions and 10 deletions
|
@ -10,7 +10,7 @@ require 'readline'
|
|||
require 'i18n'
|
||||
require 'yaml'
|
||||
|
||||
require "#{APP_ROOT}/MPW/MPW"
|
||||
require "#{APP_ROOT}/lib/MPW"
|
||||
|
||||
class Cli
|
||||
|
||||
|
@ -27,13 +27,13 @@ class Cli
|
|||
if !defined?(@sync)
|
||||
case @config.sync_type
|
||||
when 'mpw'
|
||||
require "#{APP_ROOT}/MPW/Sync/MPWSync"
|
||||
require "#{APP_ROOT}/lib/Sync/MPWSync"
|
||||
@sync = MPW::Sync::MPWSync.new
|
||||
when 'sftp', 'scp', 'ssh'
|
||||
require "#{APP_ROOT}/MPW/Sync/SSH"
|
||||
require "#{APP_ROOT}/lib/Sync/SSH"
|
||||
@sync = MPW::Sync::SSH.new
|
||||
when 'ftp'
|
||||
require "#{APP_ROOT}/MPW/Sync/FTP"
|
||||
require "#{APP_ROOT}/lib/Sync/FTP"
|
||||
@sync = MPW::Sync::FTP.new
|
||||
else
|
||||
return false
|
6
mpw
6
mpw
|
@ -10,9 +10,9 @@ require 'locale'
|
|||
require 'i18n'
|
||||
|
||||
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
|
||||
require "#{APP_ROOT}/MPW/UI/Cli"
|
||||
require "#{APP_ROOT}/MPW/Config"
|
||||
require "#{APP_ROOT}/MPW/MPW"
|
||||
require "#{APP_ROOT}/lib/UI/Cli"
|
||||
require "#{APP_ROOT}/lib/Config"
|
||||
require "#{APP_ROOT}/lib/MPW"
|
||||
|
||||
# --------------------------------------------------------- #
|
||||
# Set local
|
||||
|
|
|
@ -10,7 +10,7 @@ require 'locale'
|
|||
require 'i18n'
|
||||
|
||||
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
|
||||
require "#{APP_ROOT}/MPW/Server.rb"
|
||||
require "#{APP_ROOT}/lib/Server.rb"
|
||||
|
||||
# --------------------------------------------------------- #
|
||||
# Set local
|
||||
|
|
4
mpw-ssh
4
mpw-ssh
|
@ -10,8 +10,8 @@ require 'locale'
|
|||
require 'i18n'
|
||||
|
||||
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
|
||||
require "#{APP_ROOT}/MPW/UI/CliSSH"
|
||||
require "#{APP_ROOT}/MPW/Config"
|
||||
require "#{APP_ROOT}/lib/UI/CliSSH"
|
||||
require "#{APP_ROOT}/lib/Config"
|
||||
|
||||
lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue