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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWVlZGZlZDQ4ZmI4NWY1OTk1ZTcxNDQzYTE1MzYyYzFhZTY2NDY2Mw==
4
+ YjU5ODAwNjIxODEyYTljNjRiY2UxOGMwYzg3ODkwMmUwMWRkNDkyNQ==
5
5
  data.tar.gz: !binary |-
6
- NWUzYzYyMjExODhiNzIxMjc0NDI5ODA1NDkwNDdlNmVkNTY5NDYzMQ==
6
+ ZmI1MmU4OGVkM2JmY2NmMTE0NGM1MTdhNDg4NWVmYmYyYjNmZDY0MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTFmZWE4MGIwMWRkNWMwYTYyOTNiZmYwOGU1ZjAwNWExYzJiMTNmYmEwNGYz
10
- NmU4MDkwZjQ4ZjNhZDk2MTBlMGU3ZjJlMzA1N2E2MTRlMzUwYTY1ZmI0NGFl
11
- MzhhZTY0ZjU2M2IxODk3MjFjYmNhYzkwZWQzZjY3YTUwMzI0MmE=
9
+ ODExNDUwNDA2MDI0YzNjMjNhNTI5MjI3NjhiZmQ2YTg2YjlkOWI1MDBlOGFl
10
+ ODdjZGNiZWU0Mjg2MWRkZDdlYjE1ZGU5MTA2MTA2MzQzY2MzNzkzNWNjNWZi
11
+ YTE5MjliM2QxYzdkYmQ2ODJkYWE1ZmIzZWU4ODcwM2FjZGRhMDA=
12
12
  data.tar.gz: !binary |-
13
- YWY0ODJmYTBiMzg4NjRiMzc1MTgzMmVkMDVlZTQ5MGU0MGM1YWZkNzk4YThm
14
- YTU2YTgxYTYwY2U1MGQ1ZjIzN2E1Y2Y3NTZjZjZmOTM0YjkxZjMzNzE4OWFk
15
- NzliNDJlNWQ4NDY2ZTdhNjFlOTEzMjJlMTA1MmE3N2NhNjllMDQ=
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.open("#{@settings['secret_dir']}/.gitignore", 'w') do |file|
51
- file.puts '*'
52
- file.puts '!.gitignore'
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
@@ -1,4 +1,4 @@
1
1
  # The version of the gem
2
2
  module Zanzibar
3
- VERSION = '0.1.19'
3
+ VERSION = '0.1.20'
4
4
  end
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.19
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-05 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler