Permalink
Browse files

Use fetch's own default option

  • Loading branch information...
1 parent ec0e2bd commit 8b32b1a3672f188148f3de1ff9986c941c12e5da @iain committed May 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/roundsman/capistrano.rb
View
2 lib/roundsman/capistrano.rb
@@ -45,7 +45,7 @@ def run(*args)
set_default :roundsman_working_dir, "/tmp/roundsman"
set_default :stream_roundsman_output, true
- set_default(:roundsman_user) { fetch(:user) rescue capture('whoami').strip }
+ set_default(:roundsman_user) { fetch(:user) { capture('whoami').strip } }
set_default :debug_chef, false
set_default :package_manager, 'apt-get'

0 comments on commit 8b32b1a

Please sign in to comment.