kitchen-verifier-serverspec 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/verifier/serverspec.rb +12 -5
- data/lib/kitchen/verifier/serverspec_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92561bf1f7357cd1a5b529376f6f410e23ae5901
|
4
|
+
data.tar.gz: 76ab82905bea14cba6513b1209858c4c3a37f54f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8656acc83060adccea8c2be773dfc882e3b1fd7050210332855c31c86361a3033b92c621a6c5ca5a85419955167d05f399ec3b3d242fa0012ff7159eb48e5503
|
7
|
+
data.tar.gz: c60a7f9d8282d9cbbf6b9c93e159a4ca11a7ac290ad8806495fa8b735ef0a9c8c84449cae3cbe84741c71a9f84101deef9cdf6daf42992376c006517f947f79b
|
@@ -105,7 +105,7 @@ module Kitchen
|
|
105
105
|
mkdir -p #{config[:default_path]}
|
106
106
|
cd #{config[:default_path]}
|
107
107
|
RSPEC_CMD=#{rspec_bash_cmd}
|
108
|
-
echo $RSPEC_CMD
|
108
|
+
echo "---> RSPEC_CMD variable is: ${RSPEC_CMD}"
|
109
109
|
#{rspec_commands}
|
110
110
|
#{remove_default_path}
|
111
111
|
INSTALL
|
@@ -167,8 +167,15 @@ module Kitchen
|
|
167
167
|
def install_bundler
|
168
168
|
if config[:remote_exec]
|
169
169
|
<<-INSTALL
|
170
|
-
if [ $(#{sudo('gem')} list bundler -i) ==
|
171
|
-
|
170
|
+
if [ \"$(#{sudo('gem')} list bundler -i)\" == \"true\" ]; then
|
171
|
+
echo "Bundler already installed"
|
172
|
+
else
|
173
|
+
if [ \"$(#{sudo('gem')} list bundler -i)\" == \"false\" ]; then
|
174
|
+
#{sudo_env('gem')} install #{gem_proxy_parm} --no-ri --no-rdoc bundler
|
175
|
+
else
|
176
|
+
echo "ERROR: Ruby not installed correctly"
|
177
|
+
exit 1
|
178
|
+
fi
|
172
179
|
fi
|
173
180
|
INSTALL
|
174
181
|
else
|
@@ -197,7 +204,7 @@ module Kitchen
|
|
197
204
|
#{test_serverspec_installed}
|
198
205
|
#{install_gemfile}
|
199
206
|
BUNDLE_CMD=#{bundler_cmd}
|
200
|
-
echo $BUNDLE_CMD
|
207
|
+
echo "---> BUNDLE_CMD variable is: ${BUNDLE_CMD}"
|
201
208
|
#{sudo_env('')} $BUNDLE_CMD install --gemfile=#{config[:default_path]}/Gemfile
|
202
209
|
#{fi_test_serverspec_installed}
|
203
210
|
INSTALL
|
@@ -259,7 +266,7 @@ module Kitchen
|
|
259
266
|
end
|
260
267
|
|
261
268
|
def test_serverspec_installed
|
262
|
-
config[:test_serverspec_installed] ? "if [ $(#{sudo('gem')} list serverspec -i) ==
|
269
|
+
config[:test_serverspec_installed] ? "if [ \"$(#{sudo('gem')} list serverspec -i)\" == \"false\" ]; then" : nil
|
263
270
|
end
|
264
271
|
|
265
272
|
def fi_test_serverspec_installed
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-verifier-serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neill Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|