Skip to content
Browse files

Clean up writing out the standalone file

Closes #864
  • Loading branch information...
1 parent 7499228 commit 02b31429b5d4187b665657fe3ac3e8bbca83a95b Andre Arko and Terence Lee committed Jan 14, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/bundler/installer.rb
View
6 lib/bundler/installer.rb
@@ -105,14 +105,12 @@ def generate_standalone(groups)
end
end
- lines = ["path = File.expand_path('..', __FILE__)"]
File.open File.join(bundler_path, "setup.rb"), "w" do |file|
+ file.puts "path = File.expand_path('..', __FILE__)"
paths.each do |path|
- lines << %{$:.unshift File.expand_path("\#{path}/#{path}")}
+ file.puts %{$:.unshift File.expand_path("\#{path}/#{path}")}
end
-
- file.puts lines.join("\n")
end
end
end

0 comments on commit 02b3142

Please sign in to comment.
Something went wrong with that request. Please try again.