taste_tester 0.0.6 → 0.0.7

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.
@@ -168,7 +168,7 @@ module TasteTester
168
168
  end
169
169
  end
170
170
  logger.error("Upload failed")
171
- logger.error(e.to_s)
171
+ logger.error(exception.to_s)
172
172
  exit 1
173
173
  end
174
174
  end
@@ -130,9 +130,9 @@ module TasteTester
130
130
  @state.port = TasteTester::Config.chef_port
131
131
  end
132
132
  logger.info("Starting chef-zero of port #{@state.port}")
133
+
133
134
  Mixlib::ShellOut.new(
134
- "/opt/chef/embedded/bin/chef-zero --host #{@addr}" +
135
- " --port #{@state.port} -d"
135
+ "#{chef_zero_path} --host #{@addr} --port #{@state.port} -d"
136
136
  ).run_command.error!
137
137
  end
138
138
 
@@ -143,5 +143,16 @@ module TasteTester
143
143
  # You have to give it a moment to stop or the stat fails
144
144
  sleep(1)
145
145
  end
146
+
147
+ def chef_zero_path
148
+ [
149
+ '/opt/chef/bin/chef-zero',
150
+ '/opt/chef/embedded/bin/chef-zero',
151
+ ].each do |path|
152
+ return path if File.exist?(path)
153
+ end
154
+ logger.error("chef-zero not found")
155
+ exit(1)
156
+ end
146
157
  end
147
158
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taste_tester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-15 00:00:00.000000000 Z
13
+ date: 2014-10-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mixlib-config