From 24930b094dfb8a55c3a93ecf42b7205545cf68b0 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Mon, 9 Apr 2012 00:03:40 -0700 Subject: [PATCH] Friendlier bundle install step --- middleman-core/lib/middleman-core/templates.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/templates.rb b/middleman-core/lib/middleman-core/templates.rb index 95d0f461..365a76bc 100644 --- a/middleman-core/lib/middleman-core/templates.rb +++ b/middleman-core/lib/middleman-core/templates.rb @@ -59,8 +59,9 @@ module Middleman::Templates return unless options[:bundler] template "shared/Gemfile.tt", File.join(location, "Gemfile") - say_status :run, "bundle install" - print `cd #{location} && "#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" install` + inside(location) do + run('bundle install', :capture => true) + end end end end