knife-data-bag-version 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Thorfile +1 -0
- data/VERSION +1 -0
- data/knife-data-bag-version.gemspec +1 -1
- data/lib/databag_version.rb +5 -1
- metadata +4 -2
data/Thorfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "thor/scmversion"
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.1
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |g|
|
4
4
|
g.name = 'knife-data-bag-version'
|
5
|
-
g.version =
|
5
|
+
g.version = IO.read(File.join(File.dirname(__FILE__), "VERSION")) rescue "0.0.1"
|
6
6
|
g.summary = "Create versioned data bag items"
|
7
7
|
g.description = "Processes data bag item templates with Erubis & thor-scmversion to create 'versioned' data bag items."
|
8
8
|
g.authors = ["Kristian Van Der Vliet"]
|
data/lib/databag_version.rb
CHANGED
@@ -23,7 +23,11 @@ module DatabagVersion
|
|
23
23
|
@be_quiet = quiet
|
24
24
|
Dir.foreach(path) do |dir|
|
25
25
|
# Skip everything that isn't a sub-directory
|
26
|
-
|
26
|
+
subdir = File.join(path, dir)
|
27
|
+
unless File.directory?(subdir)
|
28
|
+
puts "Skiping #{subdir} (Not a directory)" unless @be_quiet
|
29
|
+
next
|
30
|
+
end
|
27
31
|
# Process every sub-directory (but not current & parent, natch)
|
28
32
|
process_dir("#{path}/#{dir}") unless dir == '.' || dir == '..'
|
29
33
|
end if File.exist?(path)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-data-bag-version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
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-11-
|
12
|
+
date: 2013-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor-scmversion
|
@@ -38,6 +38,8 @@ files:
|
|
38
38
|
- LICENSE
|
39
39
|
- README.md
|
40
40
|
- Rakefile
|
41
|
+
- Thorfile
|
42
|
+
- VERSION
|
41
43
|
- knife-data-bag-version.gemspec
|
42
44
|
- lib/chef/knife/knife-data-bag-version.rb
|
43
45
|
- lib/databag_version.rb
|