Solved

Use exisiting script in rails project.

Posted on 2011-02-28
1
353 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now