Skip to content

Commit

Permalink
Fix finding path of embedded vagrant to be more specific, and only re…
Browse files Browse the repository at this point in the history
…turn one result
  • Loading branch information
andrewgross committed Jul 17, 2013
1 parent 7c3bca3 commit f87518e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-chef-zero/server_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def start_chef_zero(env)
port = get_port(env)
host = get_host(env)
if ! chef_zero_server_running?(port)
vagrant_gems = ENV['GEM_PATH'].split(':').select { |gp| gp.include?('vagrant')}
vagrant_gems = ENV['GEM_PATH'].split(':').select { |gp| gp.include?('vagrant.d')}.first
chef_zero_binary = ::File.join(vagrant_gems, "bin", "chef-zero")
proc = IO.popen("#{chef_zero_binary} --host #{host} --port #{port} 2>&1 > /dev/null")
env[:chef_zero].ui.info("Starting Chef Zero at http://#{host}:#{port}")
Expand Down

0 comments on commit f87518e

Please sign in to comment.