zanzibar 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +3 -0
- data/lib/zanzibar/actions/bundle.rb +5 -3
- data/lib/zanzibar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjU5ODAwNjIxODEyYTljNjRiY2UxOGMwYzg3ODkwMmUwMWRkNDkyNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmI1MmU4OGVkM2JmY2NmMTE0NGM1MTdhNDg4NWVmYmYyYjNmZDY0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODExNDUwNDA2MDI0YzNjMjNhNTI5MjI3NjhiZmQ2YTg2YjlkOWI1MDBlOGFl
|
10
|
+
ODdjZGNiZWU0Mjg2MWRkZDdlYjE1ZGU5MTA2MTA2MzQzY2MzNzkzNWNjNWZi
|
11
|
+
YTE5MjliM2QxYzdkYmQ2ODJkYWE1ZmIzZWU4ODcwM2FjZGRhMDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjYwZTdjZjZiMDI4ZGIzODU4MjZiZjliNTE1NGY1MWFiZDYzYmEzZDlkMjA2
|
14
|
+
MWM2Mjc1ZWM2NjljNjQ4MjZkNmMwNTAxN2Q1YTQyYzQ4ODgyM2UwODJkMTg4
|
15
|
+
NWE5MzgwYjgyNTAyZmY1NmU5NGVkMGNjMjA4OGRiMzk2YjQ4MmE=
|
data/README.md
CHANGED
@@ -98,6 +98,8 @@ When it downloads a file, it gets added to `Zanzifile.resolved`. And next time
|
|
98
98
|
`resolved` file, it will not attempt to re-download. `zanzibar update` will attempt
|
99
99
|
to re-download all secrets.
|
100
100
|
|
101
|
+
Subdirectories under the root directory `secret_dir` can be created for individual keys by specifying a `prefix` path for that secret. Secrets will default to be downloaded to the root `secret_dir` directory otherwise.
|
102
|
+
|
101
103
|
Note: `zanzibar get` can fetch passwords or files, but `zanzibar bundle` can
|
102
104
|
only operate on secret files.
|
103
105
|
|
@@ -114,6 +116,7 @@ secrets:
|
|
114
116
|
ssh_key:
|
115
117
|
id: 249
|
116
118
|
label: Private Key
|
119
|
+
prefix: ssh/
|
117
120
|
encryption_key:
|
118
121
|
id: 483
|
119
122
|
label: Attachment
|
@@ -47,9 +47,11 @@ module Zanzibar
|
|
47
47
|
## Make sure the directory exists and that a .gitignore is there to ignore it
|
48
48
|
if @settings['secret_dir']
|
49
49
|
FileUtils.mkdir_p(@settings['secret_dir'])
|
50
|
-
File.
|
51
|
-
|
52
|
-
|
50
|
+
if !File.exist? "#{@settings['secret_dir']}/.gitignore"
|
51
|
+
File.open("#{@settings['secret_dir']}/.gitignore", 'w') do |file|
|
52
|
+
file.puts '*'
|
53
|
+
file.puts '!.gitignore'
|
54
|
+
end
|
53
55
|
end
|
54
56
|
end
|
55
57
|
end
|
data/lib/zanzibar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zanzibar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Davis-Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|