leeloo 0.0.9 → 0.0.10
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.
- checksums.yaml +4 -4
- data/lib/leeloo/command.rb +19 -17
- data/lib/leeloo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21794ba02cc97061ed8ae02b5ea0b5302c5ed499
|
4
|
+
data.tar.gz: 0b07492f3b58fcbf79a239ebcdf2ad8cf106b842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb305a8ed35ee6a85318a8753f6cf54a0b5d5c6decc9c96d4abcc10f5f6afae9ef50a11ecb551907ed14e194a1ffb4a3c50e53b8c669e1e96db38976eddcd7d0
|
7
|
+
data.tar.gz: 2812b7046a6b18e532e9412a2fba0356d4f0738dc7d833bf3395f1f46a563d61298ee1ebb9473cb1cd22385b5b736ec51f2d2c56a6065af25192c1c4f8b2268d
|
data/lib/leeloo/command.rb
CHANGED
@@ -29,7 +29,7 @@ module Leeloo
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
command :"list
|
32
|
+
command :"list-keystore" do |c|
|
33
33
|
c.syntax = 'leeloo list'
|
34
34
|
c.description = "Display keystores list"
|
35
35
|
c.action do |args, options|
|
@@ -37,9 +37,9 @@ module Leeloo
|
|
37
37
|
Config::list_keystores
|
38
38
|
end
|
39
39
|
end
|
40
|
-
alias_command :keystore, :"list
|
40
|
+
alias_command :keystore, :"list-keystore"
|
41
41
|
|
42
|
-
command :"list
|
42
|
+
command :"list-secret" do |c|
|
43
43
|
c.syntax = 'leeloo list secret [options]'
|
44
44
|
c.description = "Display secrets list of keystore"
|
45
45
|
c.option '--keystore STRING', String, 'a selected keystore'
|
@@ -49,9 +49,9 @@ module Leeloo
|
|
49
49
|
Secret::list Config.get_keystore(options.keystore)
|
50
50
|
end
|
51
51
|
end
|
52
|
-
alias_command :list, :"list
|
52
|
+
alias_command :list, :"list-secret"
|
53
53
|
|
54
|
-
command :"add
|
54
|
+
command :"add-keystore" do |c|
|
55
55
|
c.syntax = 'leeloo add keystore <name> <path>'
|
56
56
|
c.description = "Add a new keystore"
|
57
57
|
|
@@ -67,7 +67,7 @@ module Leeloo
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
command :"sync
|
70
|
+
command :"sync-secret" do |c|
|
71
71
|
c.syntax = 'leeloo recrypt secrets'
|
72
72
|
c.description = "(re)sync all secrets from a given keystore"
|
73
73
|
c.option '--keystore STRING', String, 'a selected keystore'
|
@@ -78,9 +78,9 @@ module Leeloo
|
|
78
78
|
say "keystore synced successfully"
|
79
79
|
end
|
80
80
|
end
|
81
|
-
alias_command :sync, :"sync
|
81
|
+
alias_command :sync, :"sync-secret"
|
82
82
|
|
83
|
-
command :"add
|
83
|
+
command :"add-secret" do |c|
|
84
84
|
c.syntax = 'leeloo add secret <name>'
|
85
85
|
c.description = "Add a new secret in a keystore"
|
86
86
|
c.option '--keystore STRING', String, 'a selected keystore'
|
@@ -110,11 +110,12 @@ module Leeloo
|
|
110
110
|
Clipboard.copy secret if options.clipboard
|
111
111
|
end
|
112
112
|
end
|
113
|
-
alias_command :
|
114
|
-
alias_command :
|
115
|
-
alias_command :
|
113
|
+
alias_command :write, :"add-secret"
|
114
|
+
alias_command :add, :"add-secret"
|
115
|
+
alias_command :insert, :"add-secret"
|
116
|
+
alias_command :set, :"add-secret"
|
116
117
|
|
117
|
-
command :"read
|
118
|
+
command :"read-secret" do |c|
|
118
119
|
c.syntax = 'leeloo read secret <name>'
|
119
120
|
c.description = "Display a secret from a keystore"
|
120
121
|
c.option '--keystore STRING', String, 'a selected keystore'
|
@@ -135,11 +136,11 @@ module Leeloo
|
|
135
136
|
abort "unable to find #{name}"
|
136
137
|
end
|
137
138
|
end
|
138
|
-
alias_command :read, :"read
|
139
|
-
alias_command :get, :"read
|
139
|
+
alias_command :read, :"read-secret"
|
140
|
+
alias_command :get, :"read-secret"
|
140
141
|
end
|
141
142
|
|
142
|
-
command :"remove
|
143
|
+
command :"remove-secret" do |c|
|
143
144
|
c.syntax = 'leeloo remove secret <name>'
|
144
145
|
c.description = "Remove a secret from a keystore"
|
145
146
|
c.option '--keystore STRING', String, 'a selected keystore'
|
@@ -158,8 +159,9 @@ module Leeloo
|
|
158
159
|
abort "unable to find #{name}"
|
159
160
|
end
|
160
161
|
end
|
161
|
-
alias_command :
|
162
|
-
alias_command :
|
162
|
+
alias_command :remove, :"remove-secret"
|
163
|
+
alias_command :delete, :"remove-secret"
|
164
|
+
alias_command :erase, :"remove-secret"
|
163
165
|
end
|
164
166
|
end
|
165
167
|
end
|
data/lib/leeloo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leeloo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvek
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|