Solved

Use exisiting script in rails project.

Posted on 2011-02-28
1
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Responsive Design or Mobile Sites? 4 36
Designing forms 3 44
Why "Mobile First"? 5 39
Replace value 2 34
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to dynamically set the form action using jQuery.

733 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