chef-vault 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  class ChefVault
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  MAJOR, MINOR, TINY = VERSION.split('.')
4
- end
4
+ end
@@ -52,6 +52,13 @@ class EncryptPassword < Chef::Knife
52
52
  data_bag = "passwords"
53
53
  data_bag_path = "./data_bags/#{data_bag}"
54
54
 
55
+ unless ::File.exists?(data_bag_path)
56
+ require 'fileutils'
57
+
58
+ puts("INFO: #{data_bag_path} does not exist, creating...")
59
+ FileUtils.mkdir_p(data_bag_path)
60
+ end
61
+
55
62
  node_search = config[:search]
56
63
  admins = config[:admins]
57
64
  username = config[:username]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef