The proper way of doing this is to pull out the update code into a
library
(class under lib/), say RadarUpdater in lib/radar_updater.rb. Then you
can
access it easily from both a Controller and it’s accessible from the
outside.
Your cron-job would look like:
ruby /path/to/rails/deploy/script/runner -e production "
RadarUpdater.run"