Skip to content

Commit

Permalink
heroku#2. Add some comments explaining reasoning.
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Oct 16, 2011
1 parent 5c4d95d commit 6524852
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/language_pack/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def build_bundler
yaml_include = File.expand_path("#{libyaml_dir}/include")
yaml_lib = File.expand_path("#{libyaml_dir}/lib")
pwd = run("pwd").chomp
# we need to set BUNDLE_CONFIG and BUNDLE_GEMFILE for
# codon since it uses bundler.
env_vars = "env BUNDLE_GEMFILE=#{pwd}/Gemfile BUNDLE_CONFIG=#{pwd}/.bundle/config CPATH=#{yaml_include}:$CPATH CPPATH=#{yaml_include}:$CPPATH LIBRARY_PATH=#{yaml_lib}:$LIBRARY_PATH"
puts "Running: #{bundle_command}"
pipe("#{env_vars} #{bundle_command} --no-clean 2>&1")
Expand Down

0 comments on commit 6524852

Please sign in to comment.