lib/alpha_omega/deploy.rb in alpha_omega-0.0.54 vs lib/alpha_omega/deploy.rb in alpha_omega-0.0.55

- old
+ new

@@ -334,10 +334,15 @@ desc <<-DESC Apply microwave tvdinners to a release directory. DESC task :cook, :roles => :app, :except => { :no_release => true } do - run "[[ -x bin/nuke ]] && #{ruby_loader} bin/nuke" + run_script = <<-SCRIPT + set -e; cd #{release_path}; + if [[ -x bin/nuke ]]; then #{ruby_loader} bin/nuke; fi; + SCRIPT + + run run_script.gsub(/[\n\r]+[ \t]+/, " ") end desc <<-DESC Compares your application. DESC