Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Cap deploy bash function
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
  3 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:
Follow-up To:
Add Cc | Add Follow-up 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 that you hear
 
Caius Durling  
View profile   Translate to Translated (View Original)
 More options 12 June, 14:45
From: Caius Durling <ca...@caius.name>
Date: Fri, 12 Jun 2009 14:45:07 +0100
Local: Fri 12 June 2009 14:45
Subject: Cap deploy bash function
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Afternoon all,

Rahoul keeps tweeting [1] about forgetting to run `git push` before  
`cap deploy` when doing rails deployments, so I wondered how hard it  
would be to write a bash function to do that for `cap deploy` or `cap  
environment deploy` (for cap-multistage deploys.)

Turns out its not that hard, figured it might save others a moment of  
confusion in the future too: <http://pastie.textmate.org/509601>

[1]: <http://twitter.com/xbaz/status/2130565925>

C
- ---
Caius Durling
ca...@caius.name
+44 (0) 7960 268 100
http://caius.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkoyW+MACgkQlj5WkEOM/NgSWQCgnylIKWiXwGBPtC6gyMWcDPuO
4SkAoIx0oBYxFnuO6e3I6MyIWayhfUht
=Rhpn
-----END PGP SIGNATURE-----


    Reply to author    Forward  
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.
Caius  
View profile   Translate to Translated (View Original)
 More options 12 June, 14:54
From: Caius <ca...@caius.name>
Date: Fri, 12 Jun 2009 06:54:01 -0700 (PDT)
Local: Fri 12 June 2009 14:54
Subject: Re: Cap deploy bash function
On Jun 12, 2:45 pm, Caius Durling <ca...@caius.name> wrote:

> Turns out its not that hard, figured it might save others a moment of  
> confusion in the future too: <http://pastie.textmate.org/509601>

And predictably as soon as I posted that I saw a bug in the code. It
would only ever run `cap deploy` no matter what you passed to cap if
it was deploying.

Updated (and fixed) version at <http://gist.github.com/128644>

C
---
Caius Durling
ca...@caius.name
+44 (0) 7960 268 100
http://caius.name/


    Reply to author    Forward  
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.
Lee Hambley  
View profile   Translate to Translated (View Original)
 More options 12 June, 15:43
From: Lee Hambley <lee.hamb...@gmail.com>
Date: Fri, 12 Jun 2009 15:43:03 +0100
Local: Fri 12 June 2009 15:43
Subject: Re: [NWRUG] Re: Cap deploy bash function

Caius,
Why not use the capistrano built-in "deploy:pending" to show you what's
pending....

before "deploy" do
   deploy.pending
   return false unless Capistrano::CLI.ui.ask "Really deploy, or do you
wanna try a push first?" ~= /continue/
end

that way anyone that's using his deploy script benefits from the same sanity
check?

2009/6/12 Caius <ca...@caius.name>


    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google