taste_tester 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/taste_tester/commands.rb +1 -1
- data/lib/taste_tester/server.rb +13 -2
- metadata +2 -2
data/lib/taste_tester/server.rb
CHANGED
@@ -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
|
-
"
|
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.
|
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-
|
13
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mixlib-config
|