itamae-secrets 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itamae/secrets/store.rb +7 -2
- data/lib/itamae/secrets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8656276685eea20659eb314a27fdff79da195862
|
4
|
+
data.tar.gz: a07f579da8ef8d9c0207043b764c0647f02acd9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4fb7bba48ce206c596d3b70246286b3c9db2d10279f8216edf0933af5745bb0deb8c16bd09cc0275462bcac3fbfec81902774df23e5d21e2cd9f0988d10bef4
|
7
|
+
data.tar.gz: 102cb18d866a671fd348a4398fa9da2f8d94d19ec6ec5b06d443b22c793ddf35e150c4f31b60d964cdc3a039469b52b3823a9dc1f7be83ecffa3e18fc7365c9f
|
data/lib/itamae/secrets/store.rb
CHANGED
@@ -79,8 +79,13 @@ module Itamae
|
|
79
79
|
private
|
80
80
|
|
81
81
|
def ensure_base_dir!
|
82
|
-
base_dir.
|
83
|
-
|
82
|
+
unless base_dir.exist?
|
83
|
+
Dir.mkdir(base_dir)
|
84
|
+
end
|
85
|
+
%w(keys values).each do |x|
|
86
|
+
path = base_dir.join(x)
|
87
|
+
Dir.mkdir(path) unless File.exist?(path)
|
88
|
+
end
|
84
89
|
end
|
85
90
|
|
86
91
|
def validate_name!(name)
|