knife_cookbook_sync 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,9 @@ namespace :chef do
|
|
5
5
|
namespace :cookbooks do
|
6
6
|
desc "Upload your cookbooks to the chef server"
|
7
7
|
task :sync => [ "bootstrap:knife" ] do
|
8
|
-
Rake::Task["chef:cookbooks:resolve"]
|
8
|
+
resolve_task = Rake::Task["chef:cookbooks:resolve"] rescue nil
|
9
|
+
resolve_task.invoke if resolve_task
|
10
|
+
|
9
11
|
result = knife %W[cookbook sync -a]
|
10
12
|
fail unless [0, 5].include?(result)
|
11
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife_cookbook_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
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-
|
12
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|