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