mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +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/mpw'
|
||||
|
||||
class MPW::Cli
|
||||
module MPW
|
||||
class Cli
|
||||
# Constructor
|
||||
# @args: config -> the config
|
||||
def initialize(config)
|
||||
|
@ -531,3 +532,4 @@ class MPW::Cli
|
|||
puts "#{I18n.t('display.error')} #18: #{e}".red
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,7 +21,8 @@ require 'yaml'
|
|||
require 'i18n'
|
||||
require 'fileutils'
|
||||
|
||||
class MPW::Config
|
||||
module MPW
|
||||
class Config
|
||||
attr_accessor :error_msg
|
||||
|
||||
attr_accessor :gpg_key
|
||||
|
@ -152,3 +153,4 @@ class MPW::Config
|
|||
false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
require 'i18n'
|
||||
|
||||
class MPW::Item
|
||||
module MPW
|
||||
class Item
|
||||
attr_accessor :id
|
||||
attr_accessor :group
|
||||
attr_accessor :host
|
||||
|
@ -98,3 +99,4 @@ class MPW::Item
|
|||
([*('A'..'Z'), *('a'..'z'), *('0'..'9')]).sample(16).join
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -23,7 +23,8 @@ require 'yaml'
|
|||
require 'rotp'
|
||||
require 'mpw/item'
|
||||
|
||||
class MPW::MPW
|
||||
module MPW
|
||||
class MPW
|
||||
# Constructor
|
||||
def initialize(key, wallet_file, gpg_pass = nil, gpg_exe = nil)
|
||||
@key = key
|
||||
|
@ -363,3 +364,4 @@ class MPW::MPW
|
|||
raise "#{I18n.t('error.gpg_file.encrypt')}\n#{e}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue