Solved

Use exisiting script in rails project.

Posted on 2011-02-28
1
362 Views
Last Modified: 2012-06-27
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
Comment
Question by:LinuxInAtlanta
1 Comment
 
LVL 4

Accepted Solution

by:
kristinalim earned 500 total points
ID: 34996461
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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Read about why website design really matters in today's demanding market.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question