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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ef2ede4ec13adc0437c39594e254bb01f9777df
4
- data.tar.gz: 47ca5ad564300e51de05ca3c995ed39b085def68
3
+ metadata.gz: 8656276685eea20659eb314a27fdff79da195862
4
+ data.tar.gz: a07f579da8ef8d9c0207043b764c0647f02acd9a
5
5
  SHA512:
6
- metadata.gz: 873c436787a1352585fcb6819c3f0ecb203ea4616ed2b1cc5c52cddb2642eeac892cf261163656c1c5f0b0f5ea335a1ca7e8d15da17fe921244b81dc5229282a
7
- data.tar.gz: 1b1d68c2e7801170d3daf36b5e4905284d829812d6555f30c85c883c99124bd717e60ff816c5f5224c0f35b81c5ccffa4b86171e38bc4d624e0ee11868d536c1
6
+ metadata.gz: b4fb7bba48ce206c596d3b70246286b3c9db2d10279f8216edf0933af5745bb0deb8c16bd09cc0275462bcac3fbfec81902774df23e5d21e2cd9f0988d10bef4
7
+ data.tar.gz: 102cb18d866a671fd348a4398fa9da2f8d94d19ec6ec5b06d443b22c793ddf35e150c4f31b60d964cdc3a039469b52b3823a9dc1f7be83ecffa3e18fc7365c9f
@@ -79,8 +79,13 @@ module Itamae
79
79
  private
80
80
 
81
81
  def ensure_base_dir!
82
- base_dir.join('keys').mkpath
83
- base_dir.join('values').mkpath
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)
@@ -1,5 +1,5 @@
1
1
  module Itamae
2
2
  module Secrets
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-secrets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Fukumori (sora_h)