mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +00:00
revert new module form
This commit is contained in:
parent
b1fd013d92
commit
ac2732d116
4 changed files with 12 additions and 4 deletions
|
@ -26,7 +26,8 @@ require 'tmpdir'
|
||||||
require 'mpw/item'
|
require 'mpw/item'
|
||||||
require 'mpw/mpw'
|
require 'mpw/mpw'
|
||||||
|
|
||||||
class MPW::Cli
|
module MPW
|
||||||
|
class Cli
|
||||||
# Constructor
|
# Constructor
|
||||||
# @args: config -> the config
|
# @args: config -> the config
|
||||||
def initialize(config)
|
def initialize(config)
|
||||||
|
@ -531,3 +532,4 @@ class MPW::Cli
|
||||||
puts "#{I18n.t('display.error')} #18: #{e}".red
|
puts "#{I18n.t('display.error')} #18: #{e}".red
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
@ -21,7 +21,8 @@ require 'yaml'
|
||||||
require 'i18n'
|
require 'i18n'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
class MPW::Config
|
module MPW
|
||||||
|
class Config
|
||||||
attr_accessor :error_msg
|
attr_accessor :error_msg
|
||||||
|
|
||||||
attr_accessor :gpg_key
|
attr_accessor :gpg_key
|
||||||
|
@ -152,3 +153,4 @@ class MPW::Config
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
|
|
||||||
require 'i18n'
|
require 'i18n'
|
||||||
|
|
||||||
class MPW::Item
|
module MPW
|
||||||
|
class Item
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
attr_accessor :group
|
attr_accessor :group
|
||||||
attr_accessor :host
|
attr_accessor :host
|
||||||
|
@ -98,3 +99,4 @@ class MPW::Item
|
||||||
([*('A'..'Z'), *('a'..'z'), *('0'..'9')]).sample(16).join
|
([*('A'..'Z'), *('a'..'z'), *('0'..'9')]).sample(16).join
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
@ -23,7 +23,8 @@ require 'yaml'
|
||||||
require 'rotp'
|
require 'rotp'
|
||||||
require 'mpw/item'
|
require 'mpw/item'
|
||||||
|
|
||||||
class MPW::MPW
|
module MPW
|
||||||
|
class MPW
|
||||||
# Constructor
|
# Constructor
|
||||||
def initialize(key, wallet_file, gpg_pass = nil, gpg_exe = nil)
|
def initialize(key, wallet_file, gpg_pass = nil, gpg_exe = nil)
|
||||||
@key = key
|
@key = key
|
||||||
|
@ -363,3 +364,4 @@ class MPW::MPW
|
||||||
raise "#{I18n.t('error.gpg_file.encrypt')}\n#{e}"
|
raise "#{I18n.t('error.gpg_file.encrypt')}\n#{e}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue