Permalink
Browse files

wip

  • Loading branch information...
1 parent 78e3eb9 commit 8bbd5b7b9d2b78c312f66312e1d34e29de35ab04 @indirect indirect committed Jan 7, 2013
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/bundler/installer.rb
@@ -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

0 comments on commit 8bbd5b7

Please sign in to comment.