passw3rd 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/EXAMPLES +18 -6
- data/lib/passw3rd/password_client.rb +1 -0
- data/lib/passw3rd/version.rb +1 -1
- metadata +1 -1
data/EXAMPLES
CHANGED
@@ -4,18 +4,27 @@ Command line use
|
|
4
4
|
|
5
5
|
Generate key/iv in ~/ by default
|
6
6
|
|
7
|
-
passw3rd -
|
7
|
+
$ passw3rd -g
|
8
|
+
generated keys in /Users/user
|
9
|
+
|
10
|
+
$ passw3rd -g ~/Desktop/
|
11
|
+
generated keys in /Users/user/Desktop/
|
8
12
|
|
9
13
|
Create a password file
|
10
14
|
|
11
|
-
passw3rd -e
|
12
|
-
Enter password:
|
15
|
+
$ passw3rd -e foobar_app
|
16
|
+
Enter the password:
|
17
|
+
Wrote password to /Users/neilmatatall/foobar_app
|
18
|
+
$ passw3rd -e foobar_app -p ~/Desktop/
|
19
|
+
Enter the password:
|
20
|
+
Wrote password to /Users/neilmatatall/Desktop/foobar_app
|
13
21
|
|
14
22
|
Read a password file
|
15
23
|
|
16
|
-
passw3rd -d
|
17
|
-
|
18
|
-
|
24
|
+
$ passw3rd -d foobar_app
|
25
|
+
The password is: asdf
|
26
|
+
$ passw3rd -d foobar_app -p ~/Desktop/
|
27
|
+
The password is: asdf
|
19
28
|
|
20
29
|
|
21
30
|
------------------------------------------------------------------------------
|
@@ -48,6 +57,9 @@ password=${password}
|
|
48
57
|
Ruby on Rails config/database.yml
|
49
58
|
------------------------------------------------------------------------------
|
50
59
|
|
60
|
+
initializer:
|
61
|
+
Passw3rd::PasswordService.password_file_dir = "passwords"
|
62
|
+
|
51
63
|
Before:
|
52
64
|
|
53
65
|
development:
|
@@ -32,6 +32,7 @@ module Passw3rd
|
|
32
32
|
|
33
33
|
opts.on('-p', '--password-dir PATH', 'Read and write password files to this directory (default is ~/)') do |opt|
|
34
34
|
password_dir = opt
|
35
|
+
Passw3rd::PasswordService.password_file_dir = password_dir
|
35
36
|
if !File.directory?(File.expand_path(password_dir))
|
36
37
|
raise "#{password_dir} must be a directory"
|
37
38
|
end
|
data/lib/passw3rd/version.rb
CHANGED