leeloo 0.0.15 → 0.0.16
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 +10 -2
- data/lib/leeloo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9214d0cb6dfd5872b74cd14707a591f5550b5c80bb7df2492c056009001d9cd8
|
4
|
+
data.tar.gz: cb5bb412d04bbafe54d043eb9dd272b07b71e11a2c44ff0f42447632a6a156a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ad8d579c173689b65c7216f2705fa82e764846503c6b028019002f117e7caeb0085bbdf75f9e792d8b5d54265e2e226543c4e409c264df46a12f8b3893f315
|
7
|
+
data.tar.gz: 9d91319a9b71a4786b361e3068aea55c767ddf0acb8e619e7f115b97df4b23fd0859d1cb77d0e68d81215de2fe19a1e49c5273743734755dbae53fa9c94ca3fa
|
data/lib/leeloo/command.rb
CHANGED
@@ -165,6 +165,7 @@ module Leeloo
|
|
165
165
|
c.description = "Display a secret from a keystore"
|
166
166
|
c.option '--keystore STRING', String, 'a selected keystore'
|
167
167
|
c.option '--clipboard', nil, 'copy to clipboard'
|
168
|
+
c.option '--to /path/to/file', String, 'for binary file'
|
168
169
|
|
169
170
|
c.action do |args, options|
|
170
171
|
abort "name is missing" unless args.length == 1
|
@@ -175,8 +176,15 @@ module Leeloo
|
|
175
176
|
|
176
177
|
begin
|
177
178
|
secret = Secret.read_secret keystore, name
|
178
|
-
|
179
|
-
|
179
|
+
|
180
|
+
if (options.to)
|
181
|
+
File.open(options.to, 'w') { |file| file.write(secret) }
|
182
|
+
say "stored to #{options.to}"
|
183
|
+
else
|
184
|
+
say secret unless options.clipboard
|
185
|
+
Clipboard.copy secret if options.clipboard
|
186
|
+
end
|
187
|
+
|
180
188
|
rescue
|
181
189
|
abort "unable to find #{name}"
|
182
190
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvek
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.7.
|
188
|
+
rubygems_version: 2.7.7
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: The easiest way to share securely your secrets
|