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 +4 -4
- data/lib/toque/chef.rb +2 -2
- data/lib/toque/version.rb +1 -1
- data/spec/toque/chef_spec.rb +7 -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: d73dad6ccfc72b57e6f052ad6d0b1c0e0e6fccaf
|
4
|
+
data.tar.gz: f86abf5d88d0be9e04c83130b9c485fe974a4999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
data/spec/toque/chef_spec.rb
CHANGED
@@ -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
|