zanzibar 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/lib/zanzibar/actions/bundle.rb +8 -1
- data/lib/zanzibar/version.rb +1 -1
- data/spec/lib/zanzibar/actions/bundle_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzNhZjM1YjJkMTBhNjVkYWVlY2ZkZWFlYWZkNmY5NzNlZGQ0MWMyNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDQwZDE4MWUxNGZhOGY0YmZhNWEyNzMwNmUxNjIzN2VkMzE2YzFjOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWY5YzcyMzg4MGE2ZDk3ODEwZGJjZTVlZDRhMWJkOWI0MWI1NDBlMTdkYTNk
|
10
|
+
MzYyZWY4NGM5MzVhZWQ0NDBiOGM5ZGViMjU1ZGMxN2E0YzliNWJkOTEzMGNh
|
11
|
+
YzZhZDdkNjJkNTQwYmMwNWRjMGVkYzc2N2UxZDZjMjVkZTEwMGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWE1NTI4MTEwNWI4ZGJhZjcyNDFkMDYyNjUyYmMyZDI5NGIzNzUxNjg0OGUy
|
14
|
+
ZjBjZmQ5ODc0NGQ2MzA0YzlmMDY0NDBkYWNkYTY0MTE1MzQ5ZGUwOGE5Y2M4
|
15
|
+
MzQxMjFjZTAyOGIyNmU0YmVmN2E4MTliY2NlMmQzNGViMTExZTk=
|
data/README.md
CHANGED
@@ -44,7 +44,14 @@ module Zanzibar
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def ensure_secrets_path
|
47
|
-
|
47
|
+
## Make sure the directory exists and that a .gitignore is there to ignore it
|
48
|
+
if @settings['secret_dir']
|
49
|
+
FileUtils.mkdir_p(@settings['secret_dir'])
|
50
|
+
File.open("#{@settings['secret_dir']}/.gitignore", 'w') do |file|
|
51
|
+
file.puts '*'
|
52
|
+
file.puts '!.gitignore'
|
53
|
+
end
|
54
|
+
end
|
48
55
|
end
|
49
56
|
|
50
57
|
def resolved_file?
|
data/lib/zanzibar/version.rb
CHANGED
@@ -50,6 +50,12 @@ describe Zanzibar::Cli do
|
|
50
50
|
expect(FakeFS::FileTest.file? File.join('secrets', 'zanzi_key')).to be(true)
|
51
51
|
end
|
52
52
|
|
53
|
+
it 'should create a .gitignore' do
|
54
|
+
expect(FakeFS::FileTest.file? File.join('secrets', '.gitignore')).to be(false)
|
55
|
+
expect { subject.bundle }.to output(/Finished downloading secrets/).to_stdout
|
56
|
+
expect(FakeFS::FileTest.file? File.join('secrets', '.gitignore')).to be(true)
|
57
|
+
end
|
58
|
+
|
53
59
|
it 'should create a resolved file' do
|
54
60
|
expect(FakeFS::FileTest.file? Zanzibar::RESOLVED_NAME).to be(false)
|
55
61
|
expect { subject.bundle }.to output(/Finished downloading secrets/).to_stdout
|
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.18
|
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-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|