lib/vps_cli/cli.rb in vps_cli-0.1.22 vs lib/vps_cli/cli.rb in vps_cli-0.1.23

- old
+ new

@@ -95,16 +95,17 @@ desc 'git_push [message]', 'Automatically pushes changes of your config_files' def git_push(message = nil) message ||= 'auto push files' swap_dir do - begin - Rake.sh('git add -A') - Rake.sh("git commit -m \"#{message}\"") - Rake.sh('git push') - rescue + begin + Rake.sh('git add -A') + Rake.sh("git commit -m \"#{message}\"") + Rake.sh('git push') + rescue + end end end desc 'git_status', 'provides the status of your config_files' def git_status