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

- old
+ new

@@ -6,12 +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 %(source ~/.rvm/scripts/rvm), - %(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 --update-crontab --set environment=#{environment} -i #{name}_#{environment}; fi) end end end