Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Jan 7, 2013
1 parent 78e3eb9 commit 8bbd5b7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/bundler/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ def generate_bundler_executable_stubs(spec)
end
end
end

def generate_bundle_aware_executable_stubs(spec)
# double-assignment to avoid warnings about variables that will be used by ERB
bin_path = bin_path = Bundler.bin_path
template = template = File.read(File.expand_path('../templates/Executable', __FILE__))
relative_gemfile_path = relative_gemfile_path = Bundler.default_gemfile.relative_path_from(bin_path)
ruby_command = ruby_command = Thor::Util.ruby_command

spec.executables.each do |executable|
next if executable == "bundle"
File.open "#{bin_path}/#{executable}", 'w', 0755 do |f|
f.puts ERB.new(template, nil, '-').result(binding)
end
end
end

def generate_standalone_bundler_executable_stubs(spec)
# double-assignment to avoid warnings about variables that will be used by ERB
Expand Down

0 comments on commit 8bbd5b7

Please sign in to comment.