lib/ors/commands/update.rb in ors-0.2.4 vs lib/ors/commands/update.rb in ors-0.2.5

- old
+ new

@@ -6,11 +6,10 @@ 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, %(source ~/.rvm/scripts/rvm), - %(cd #{deploy_directory}), + execute_command cron_server, prepare_environment, %(if [ -f config/schedule.rb ]; then bundle exec whenever --update-crontab --set environment=#{environment} -i #{name}_#{environment}; fi) end end