toque 1.5.0 → 1.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d0c927de2115b818090e86bd37a709d874889a1
4
- data.tar.gz: 3d69891b1dc268118bb4f49f14d00fe239f2e6ff
3
+ metadata.gz: d73dad6ccfc72b57e6f052ad6d0b1c0e0e6fccaf
4
+ data.tar.gz: f86abf5d88d0be9e04c83130b9c485fe974a4999
5
5
  SHA512:
6
- metadata.gz: 7a8a919cb6320491fe74ca9d02342f47f7d5dd09cf7eba8f7f61df2ba62817cda9587813d4ac3a828bbb41968395dd603b384a4298da6a1add7a813284ab91b9
7
- data.tar.gz: 384a7ca7c41cc08eabacb97abb3efb5f89e9463bcc4e89f8ecdcfc0e5fad20a41be823c70080b52a35c31db1690d3182d3138d8b18dcb3a4607fd0832364fc2c
6
+ metadata.gz: ae0e96e825701c42abb8aebae252d95d5ae8d3cdc2f3f36392237db9eb338eb34a5f4ee96169b70f7000b8b0720e70c2b72e5c0f31fcff8f5450892436176e12
7
+ data.tar.gz: 051acc336cbbd24b5530811cd28f478aa27b459754a48f1d9b1da545a29558a80e6dacde8f286eb33058ec60751be05e9715ed156bd3ded2845a4e4c6ecadef4
data/lib/toque/chef.rb CHANGED
@@ -82,11 +82,11 @@ module Toque
82
82
  desc 'Install chef via omnibus installed if not preset.'
83
83
  task :check do
84
84
  unless installed?
85
- logger.info "No chef install found. Install version #{required_version}."
85
+ logger.important "No chef install found. Install version #{required_version}."
86
86
  install
87
87
  end
88
88
  if (iv = installed_version) != required_version && !required_version.nil?
89
- logger.info "Wrong chef version found: #{iv}. Install version #{required_version}."
89
+ logger.important "Wrong chef version found: #{iv}. Install version #{required_version}."
90
90
  install
91
91
  end
92
92
  end
data/lib/toque/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Toque
2
2
  module VERSION
3
3
  MAJOR = 1
4
- MINOR = 5
4
+ MINOR = 6
5
5
  PATCH = 0
6
6
  STAGE = nil
7
7
 
@@ -127,7 +127,6 @@ describe Toque::Chef, 'loaded into capistrano' do
127
127
  end
128
128
 
129
129
  describe 'toque:chef:install' do
130
-
131
130
  it 'should install chef using omnibus installer' do
132
131
  @configuration.toque.chef.install
133
132
  expect(@configuration).to have_run("sudo -p 'sudo password: ' true && curl -L http://www.opscode.com/chef/install.sh | sudo -p 'sudo password: ' bash -s -- -v 10.24.0")
@@ -151,4 +150,11 @@ describe Toque::Chef, 'loaded into capistrano' do
151
150
  end
152
151
  end
153
152
  end
153
+
154
+ describe 'toque:chef:check' do
155
+ it 'should install chef using omnibus installer if not present' do
156
+ @configuration.toque.chef.check
157
+ expect(@configuration).to have_run("sudo -p 'sudo password: ' true && curl -L http://www.opscode.com/chef/install.sh | sudo -p 'sudo password: ' bash -s -- -v 10.24.0")
158
+ end
159
+ end
154
160
  end
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.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen