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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14e2783c4e875a6065d2a8984bfa1c1e4d6c328b
4
- data.tar.gz: d43a5e0fa01999a5f90750f70bcdf7772ab0ea8a
3
+ metadata.gz: 92561bf1f7357cd1a5b529376f6f410e23ae5901
4
+ data.tar.gz: 76ab82905bea14cba6513b1209858c4c3a37f54f
5
5
  SHA512:
6
- metadata.gz: 1c633f221e24f46101ca8abdb18a6aa35440b8da41a2faeb30c536747db6711614e29346885e4c2de3674686c71562091d33f791fc0ebe6b130dbd7ac423fa8d
7
- data.tar.gz: ad2b85ce680ca52e0ccb0e979354211f91ff4c76f488613337fd44d616b81881e0bcc3e3db357952ca30eaf874e0992d9da10415d4fafaf544897bbb6b04774a
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) == 'false' ]; then
171
- #{sudo_env('gem')} install #{gem_proxy_parm} --no-ri --no-rdoc bundler
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) == 'false' ]; then" : nil
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
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Verifier
3
- SERVERSPEC_VERSION = '0.6.3'.freeze
3
+ SERVERSPEC_VERSION = '0.6.4'.freeze
4
4
  end
5
5
  end
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.3
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-19 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen