Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

Use exisiting script in rails project.

If I have a current script I use how can I intergrate that into and be scheduled by a rails project?

For instance I have a script, in ruby, that goes into a svn directory, does and svn up then builds the results and retrieves the svn version number and records if the build is successful or not.The svn project is a java project being built with ant.

I now have a framework to display a report about the build. Now I want the original script to be part of the rails project and to have the script called both automatically like cron and manually as well.

This is on OSX if it makes a difference.
0
LinuxInAtlanta
Asked:
LinuxInAtlanta
1 Solution
 
kristinalimCommented:
Take a look at the whenever gem. It by default already allows us to schedule Ruby code, Rake tasks, and shell commands conveniently. The README on that page show installation instructions and usage.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now