I guess it would be cleaner to use `File.open(gitignore_file, "a") do |f|` and `f.puts` here, but it works.