Skip to content

Commit

Permalink
actually do the compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Mar 18, 2012
1 parent 442db73 commit 2256f1d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/mason/buildpack.rb
Expand Up @@ -31,15 +31,15 @@ def compile(app)
FileUtils.cp_r app, compile_dir
Dir.chdir(compile_dir) do
Bundler.with_clean_env do
# IO.popen(%{ #{script("compile")} "#{compile_dir}" "#{cache_dir}" }) do |io|
# until io.eof?
# data = io.gets
# data.gsub!(/^-----> /, " + ")
# data.gsub!(/^ /, " ")
# data.gsub!(/^\s+$/, "")
# print data
# end
# end
IO.popen(%{ #{script("compile")} "#{compile_dir}" "#{cache_dir}" }) do |io|
until io.eof?
data = io.gets
data.gsub!(/^-----> /, " + ")
data.gsub!(/^ /, " ")
data.gsub!(/^\s+$/, "")
print data
end
end
end
end
compile_dir
Expand Down

0 comments on commit 2256f1d

Please sign in to comment.