From 4fe452680711b2148f219ffbc8145ea1348d51f2 Mon Sep 17 00:00:00 2001 From: Jack Casey Date: Thu, 20 Mar 2014 23:10:03 +0800 Subject: [PATCH] Tiny change to README to suggest using 'system' over 'exec' Reason being, 'exec' will run the shell command and then exit the ruby process. While 'system will run the shell command and then continue execution. I feel this is a better example as the first thing I did was write a rake task that chains multiple tasks together and the way 'exec' was ending the process cost me a bit of time trouble shooting why. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d4c794..042691c 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ end namespace :deploy do def deploy(env) puts "Deploying to #{env}" - exec "TARGET=#{env} bundle exec middleman deploy" + system "TARGET=#{env} bundle exec middleman deploy" end task :staging do