Skip to content

Commit

Permalink
Merge pull request #502 from maclennann/vagrant_spec_helper_windows_c…
Browse files Browse the repository at this point in the history
…ompat

make vagrant-configured spec_helper work on windows
  • Loading branch information
mizzy committed Feb 1, 2015
2 parents 5725775 + 79b9154 commit 09aa101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/serverspec/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ def self.spec_helper_template
`vagrant up #{host}`
config = Tempfile.new('', Dir.tmpdir)
`vagrant ssh-config #{host} > #{config.path}`
config.write(`vagrant ssh-config #{host}`)
config.close
options = Net::SSH::Config.for(host, [config.path])
<%- else -%>
Expand Down

0 comments on commit 09aa101

Please sign in to comment.