lib/middleman-deploy/commands.rb in middleman-deploy-0.1.0 vs lib/middleman-deploy/commands.rb in middleman-deploy-0.1.1
- old
+ new
@@ -34,11 +34,10 @@
else
build_before = self.deploy_options.build_before
end
if build_before
# http://forum.middlemanapp.com/t/problem-with-the-build-task-in-an-extension
- builder = ::Middleman::Cli::Build.new(args=[], options={:instrument=>false})
- builder.build
+ run("middleman build") || exit(1)
end
send("deploy_#{self.deploy_options.method}")
end
protected