mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +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/item'
|
||||||
require 'mpw/mpw'
|
require 'mpw/mpw'
|
||||||
|
|
||||||
module MPW
|
class MPW::Cli
|
||||||
class Cli
|
|
||||||
|
|
||||||
# Constructor
|
# Constructor
|
||||||
# @args: config -> the config
|
# @args: config -> the config
|
||||||
|
@ -533,4 +532,3 @@ class Cli
|
||||||
puts "#{I18n.t('display.error')} #18: #{e}".red
|
puts "#{I18n.t('display.error')} #18: #{e}".red
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
|
@ -21,8 +21,7 @@ require 'yaml'
|
||||||
require 'i18n'
|
require 'i18n'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
module MPW
|
class MPW::Config
|
||||||
class Config
|
|
||||||
|
|
||||||
attr_accessor :error_msg
|
attr_accessor :error_msg
|
||||||
|
|
||||||
|
@ -156,4 +155,3 @@ class Config
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
|
|
||||||
require 'i18n'
|
require 'i18n'
|
||||||
|
|
||||||
module MPW
|
class MPW::Item
|
||||||
class Item
|
|
||||||
|
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
attr_accessor :group
|
attr_accessor :group
|
||||||
|
@ -100,4 +99,3 @@ class 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,8 +23,7 @@ require 'yaml'
|
||||||
require 'rotp'
|
require 'rotp'
|
||||||
require 'mpw/item'
|
require 'mpw/item'
|
||||||
|
|
||||||
module MPW
|
class MPW::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)
|
||||||
|
@ -361,4 +360,3 @@ class 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