1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-22 02:40:04 +00:00

indent class

This commit is contained in:
Adrien Waksberg 2017-03-30 20:04:20 +02:00
parent 0f7510b6e6
commit 01745cac2d
4 changed files with 937 additions and 937 deletions

View file

@ -27,7 +27,7 @@ require 'mpw/item'
require 'mpw/mpw' require 'mpw/mpw'
module MPW module MPW
class Cli class Cli
# Constructor # Constructor
# @args: config -> the config # @args: config -> the config
def initialize(config) def initialize(config)
@ -529,5 +529,5 @@ class Cli
rescue => e rescue => e
puts "#{I18n.t('display.error')} #18: #{e}".red puts "#{I18n.t('display.error')} #18: #{e}".red
end end
end end
end end

View file

@ -22,7 +22,7 @@ require 'i18n'
require 'fileutils' require 'fileutils'
module MPW module MPW
class Config class Config
attr_accessor :error_msg attr_accessor :error_msg
attr_accessor :gpg_key attr_accessor :gpg_key
@ -150,5 +150,5 @@ class Config
false false
end end
end end
end end

View file

@ -19,7 +19,7 @@
require 'i18n' require 'i18n'
module MPW module MPW
class Item class Item
attr_accessor :id attr_accessor :id
attr_accessor :group attr_accessor :group
attr_accessor :host attr_accessor :host
@ -98,5 +98,5 @@ class Item
def generate_id def generate_id
[*('A'..'Z'), *('a'..'z'), *('0'..'9')].sample(16).join [*('A'..'Z'), *('a'..'z'), *('0'..'9')].sample(16).join
end end
end end
end end

View file

@ -24,7 +24,7 @@ require 'rotp'
require 'mpw/item' require 'mpw/item'
module MPW module MPW
class 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
@ -360,5 +360,5 @@ class MPW
rescue => e rescue => e
raise "#{I18n.t('error.gpg_file.encrypt')}\n#{e}" raise "#{I18n.t('error.gpg_file.encrypt')}\n#{e}"
end end
end end
end end