toque 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toque/chef.rb +8 -2
- data/lib/toque/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d0c927de2115b818090e86bd37a709d874889a1
|
4
|
+
data.tar.gz: 3d69891b1dc268118bb4f49f14d00fe239f2e6ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a8a919cb6320491fe74ca9d02342f47f7d5dd09cf7eba8f7f61df2ba62817cda9587813d4ac3a828bbb41968395dd603b384a4298da6a1add7a813284ab91b9
|
7
|
+
data.tar.gz: 384a7ca7c41cc08eabacb97abb3efb5f89e9463bcc4e89f8ecdcfc0e5fad20a41be823c70080b52a35c31db1690d3182d3138d8b18dcb3a4607fd0832364fc2c
|
data/lib/toque/chef.rb
CHANGED
@@ -81,8 +81,14 @@ module Toque
|
|
81
81
|
|
82
82
|
desc 'Install chef via omnibus installed if not preset.'
|
83
83
|
task :check do
|
84
|
-
|
85
|
-
|
84
|
+
unless installed?
|
85
|
+
logger.info "No chef install found. Install version #{required_version}."
|
86
|
+
install
|
87
|
+
end
|
88
|
+
if (iv = installed_version) != required_version && !required_version.nil?
|
89
|
+
logger.info "Wrong chef version found: #{iv}. Install version #{required_version}."
|
90
|
+
install
|
91
|
+
end
|
86
92
|
end
|
87
93
|
|
88
94
|
desc 'Installs chef using omnibus installer.'
|
data/lib/toque/version.rb
CHANGED