lib/ors/commands/update.rb in ors-0.1.4 vs lib/ors/commands/update.rb in ors-0.1.5

- old
+ new

@@ -6,11 +6,12 @@ info "updating #{name} #{environment}..." execute_in_parallel(all_servers) {|server| update_code server } execute_in_parallel(ruby_servers) {|server| bundle_install server } - execute_command cron_server, %(cd #{deploy_directory}), - %(if [ -f config/schedule.rb ]; then bundle exec whenever; fi) + execute_command cron_server %(source ~/.rvm/scripts/rvm), + %(cd #{deploy_directory}), + %(if [ -f config/schedule.rb ]; then bundle exec whenever; fi) end end end