Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Automating Capistrano with a Ruby On Rails Application
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Cory Logan  
View profile  
 More options Oct 27 2012, 1:13 am
From: Cory Logan <counterbe...@gmail.com>
Date: Fri, 26 Oct 2012 22:13:55 -0700 (PDT)
Local: Sat, Oct 27 2012 1:13 am
Subject: Automating Capistrano with a Ruby On Rails Application

Hey all. I'm trying use Capistrano for the purpose of third party backup
audits. I've got a set of capistrano tasks that are happily able to compare
a few checksums and report back. That's great, but I'd like to be able to
automate this process via a web interface, and also schedule this task. I
think a rails app would be a good fit to do that. The only way that I've
figured out how to do that would be something like this

cap compare_checksums -S origin_server=some.server.com -S
destination_server=somewhereelse.com

It's cool, I can pass in all of the values I need to have something that's
dynamically reusable. But I'm bothered by the fact that I would have to
sort of exit my rails app to do it. Additionally, I would like the rails
app to be able to send an email alert if there's something wrong with my
checksums.

Anyway, that solution just feels a bit clunky to me. Anyone know how to run
capistrano and pass it variable from within my rails application? Would you
advise doing so? And how about getting output back from my capistrano tasks
for emailing out? Or can you think of an altogether better way to do it?

Thank you!
Cory


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Donovan Bray  
View profile  
 More options Oct 29 2012, 11:49 am
From: Donovan Bray <donno...@gmail.com>
Date: Mon, 29 Oct 2012 08:47:42 -0700
Local: Mon, Oct 29 2012 11:47 am
Subject: Re: [capistrano] Automating Capistrano with a Ruby On Rails Application

For these types of jobs I use ci like cruisecontrol.rb or jenkins.

Just pass your variables on the command line:

val=1 val2=two cap whatever

On Oct 26, 2012, at 10:13 PM, Cory Logan <counterbe...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »