mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +00:00
add comment
This commit is contained in:
parent
960dc2c803
commit
eacca141d9
1 changed files with 7 additions and 5 deletions
|
@ -26,10 +26,10 @@ class ManagePasswd
|
||||||
COMMENT = 6
|
COMMENT = 6
|
||||||
|
|
||||||
# Constructor
|
# Constructor
|
||||||
# @args: key ->
|
# @args: key -> the gpg key to encrypt
|
||||||
# file_gpg ->
|
# file_gpg -> the file who is encrypted
|
||||||
# file_pwd ->
|
# file_pwd -> the file who stock the password
|
||||||
# timeout_pwd ->
|
# timeout_pwd -> time to save the password
|
||||||
def initialize(key, file_gpg, file_pwd, timeout_pwd=300)
|
def initialize(key, file_gpg, file_pwd, timeout_pwd=300)
|
||||||
@key = key
|
@key = key
|
||||||
@file_gpg = file_gpg
|
@file_gpg = file_gpg
|
||||||
|
@ -109,6 +109,8 @@ class ManagePasswd
|
||||||
end
|
end
|
||||||
|
|
||||||
# Display the connections informations for a server
|
# Display the connections informations for a server
|
||||||
|
# @args: search -> a string to match
|
||||||
|
# type -> search for a type item
|
||||||
def display(search, type=nil)
|
def display(search, type=nil)
|
||||||
result = self.search(search, type)
|
result = self.search(search, type)
|
||||||
|
|
||||||
|
@ -199,7 +201,7 @@ class ManagePasswd
|
||||||
end
|
end
|
||||||
|
|
||||||
# Connect to ssh && display the password
|
# Connect to ssh && display the password
|
||||||
# @args: search ->
|
# @args: search -> a string to match
|
||||||
def ssh(search)
|
def ssh(search)
|
||||||
result = self.search(search, 'ssh')
|
result = self.search(search, 'ssh')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue