Friendlier bundle install step

This commit is contained in:
Ben Hollis 2012-04-09 00:03:40 -07:00
parent b1ba94cf22
commit 24930b094d

View file

@ -59,8 +59,9 @@ module Middleman::Templates
return unless options[:bundler] return unless options[:bundler]
template "shared/Gemfile.tt", File.join(location, "Gemfile") template "shared/Gemfile.tt", File.join(location, "Gemfile")
say_status :run, "bundle install" inside(location) do
print `cd #{location} && "#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" install` run('bundle install', :capture => true)
end
end end
end end
end end