donjon 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/donjon/commands/config.rb +7 -0
- data/lib/donjon/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: 940c4424826fe9f8701b29bb26a9af71af4f217c
|
4
|
+
data.tar.gz: c637c714b56d5682b6d0752b6b4cafb44d8c08ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a00ccb3a4016e2886e419000acf945246d4e9f7c08cdd69da88c51d7c609ae0a5740d1c5c58f067236d711b34872e0b010365073381e52f38450376bda8b5d0
|
7
|
+
data.tar.gz: 5811899c6508678844795cc3eee9bc47469a556b289fb17cf48bf4fc200ca21ee5bb0266e7f75644b4f99b1bd2344239a2b03473e6333af321055000e784b281
|
@@ -6,6 +6,9 @@ module Donjon
|
|
6
6
|
desc 'config:set KEY=VALUE ...', 'Encrypts KEY and VALUE in the vault'
|
7
7
|
decl 'config:set'
|
8
8
|
|
9
|
+
desc 'config:fset KEY FILE', 'Encrypts KEY and the contents of FILE in the vault'
|
10
|
+
decl 'config:fset'
|
11
|
+
|
9
12
|
desc 'config:get KEY...', 'Decrypts the value for KEY from the vault'
|
10
13
|
decl 'config:get'
|
11
14
|
|
@@ -26,6 +29,10 @@ module Donjon
|
|
26
29
|
end
|
27
30
|
end
|
28
31
|
|
32
|
+
def config_fset(key, path)
|
33
|
+
database[key] = Pathname(path).read
|
34
|
+
end
|
35
|
+
|
29
36
|
def config_get(*keys)
|
30
37
|
keys.each do |key|
|
31
38
|
puts "#{key}: #{database[key]}"
|
data/lib/donjon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: donjon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Letessier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|