Skip to content

Commit

Permalink
Clean up writing out the standalone file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Arko and Terence Lee committed Jan 15, 2011
1 parent 7499228 commit 02b3142
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/bundler/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02b3142

Please sign in to comment.