bellboy 0.3.1 → 0.3.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.
- data/lib/bellboy/uploader.rb +6 -1
- metadata +2 -2
data/lib/bellboy/uploader.rb
CHANGED
@@ -49,7 +49,12 @@ module Bellboy
|
|
49
49
|
# Process every sub-directory (but not current & parent, natch)
|
50
50
|
unless dir == '.' || dir == '..'
|
51
51
|
begin
|
52
|
-
conn.data_bag.create(name: dir) unless conn.data_bag.find(dir)
|
52
|
+
bag = conn.data_bag.create(name: dir) unless conn.data_bag.find(dir)
|
53
|
+
if bag.nil?
|
54
|
+
Bellboy.logger.verbose "Skipped creation of data bag #{dir}"
|
55
|
+
else
|
56
|
+
Bellboy.logger.verbose "Created new data bag #{dir}"
|
57
|
+
end
|
53
58
|
manifest = upload_databag_items(conn, File.join(path, dir), dir)
|
54
59
|
|
55
60
|
rescue Ridley::Errors::RidleyError => ex
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bellboy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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: 2014-01-
|
12
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|