Closed alexharv074 closed 7 years ago
i think we need to be doing sudo -H or something to get the correct location for the gems.
has the -H option i now have as default made any difference?
you should specify gemfile: Gemfile and then it will not generate.
I just hit this, and it's really unexpected behavior. Source-controlled files like a Gemfile almost always is should not be overwritten by default.
fair enough. I guess the cause is the lines: File.open(gemfile, 'w') do |f| f.write("source 'https://rubygems.org'\ngem 'net-ssh','~> 2.9.4'\ngem 'serverspec'") end so i can wrap a unless File.exist?(gemfile) around this so i won't create unless file doesn't exist.
@neillturner That would work well enough, thank you!
Given the following
.kitchen.yml
:looks like the code here is overwriting my project's Gemfile, which I'd have to assume is a bug.