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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8c361fa7700cd4c77e837ec39883387620295eb
4
- data.tar.gz: e233b14828e321676ec9c1ed46abf52ad45c3a5c
3
+ metadata.gz: 3d0c927de2115b818090e86bd37a709d874889a1
4
+ data.tar.gz: 3d69891b1dc268118bb4f49f14d00fe239f2e6ff
5
5
  SHA512:
6
- metadata.gz: 7dc8ce01d37c3668901bcbe13a1a0fb612ac43018a48d4f10f112d29d307f6bf38253b5911d65f14440b49efeacfce91fd542fac89fc17cadfcefdb80dbaaea4
7
- data.tar.gz: 0774dbe0fb9c3dad72d75e63ea950122ba1b87b358c4fdb1b31be8cabd5a6679f0165f595dc76f1bb338b5e78a7c1535b097afab82bff76eaea9bb949eee7f56
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
- install unless installed?
85
- install unless installed_version != required_version && !required_version.nil?
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
@@ -1,7 +1,7 @@
1
1
  module Toque
2
2
  module VERSION
3
3
  MAJOR = 1
4
- MINOR = 4
4
+ MINOR = 5
5
5
  PATCH = 0
6
6
  STAGE = nil
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toque
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen